#YAML Error: metadata attribute is required

1 messages · Page 1 of 1 (latest)

frozen prawn
#

I suddenly notices this error. It goes back to 1/9 probably further back but the logs only go back that far. I am not sure what the error is in the the yaml file attached

First the log shows:
|====================================================================================================|
[2024-01-17 09:23:16,353] [meta.py:758] [INFO] | Loading Metadata File File: config/TV.yml |
[2024-01-17 09:23:16,354] [meta.py:758] [INFO] |====================================================================================================|
[2024-01-17 09:23:16,355] [meta.py:759] [INFO] | |
[2024-01-17 09:23:16,385] [meta.py:158] [DEBUG] | File Loaded From: /config/TV.yml |
[2024-01-17 09:23:16,386] [library.py:166] [ERROR] | YAML Error: metadata attribute is required |
[2024-01-17 09:23:16,387] [library.py:167] [INFO] | Metadata File Failed To Load |
[2024-01-17 09:23:16,388] [config.py:1099] [INFO] | |

vagrant lilyBOT
#

YAML Error: metadata attribute is required

The attributes metadata_path and overlay_path are now legacy, and will likely produce an error metadata attribute is required when running PMM.

We have new attributes: collection_files, overlay_files and metadata_files

Whilst this error can be ignored, we strongly advise you to move over to the new attributes, which can be done following this guidance:

:one: If your YAML file creates collections or is a PMM Defaults Collection File then it belongs under collection_files.

:two: If your YAML file creates overlays or is a PMM Defaults Overlay File then it belongs under overlay_files

:three: If your YAML file edits item metadata then it belongs under metadata_files

:four: If your file creates collections AND edits item metadata, then it should go in both collection_files and metadata_files

If you are unsure on the above, the majority of metadata_path files will now fall under collection_files, and all overlay_path files will now fall under overlay_files.

Below is an example of the new attributes in use:

libraries:
  Movies:
    collection_files:
      - pmm: imdb
    overlay_files:
      - pmm: resolution
    metadata_files:
      - file: config/metadata.yml
playlist_files:
  - pmm: playlists

https://metamanager.wiki/en/latest/config/files/#example

dapper wedgeBOT
#

Welcome @frozen prawn!

Someone from <@&938443185347244033> will assist when they're available.

Including the meta.log from the beginning is a huge help, type !logs for more information.

#

You can press the "Close Post" button above or type /close at any time to close this post.

teal kettle
#

version 1.20 splits "collection_files" and "metadata files".

Since your config is not using the new collection_files and metadata_files attributes, PMM is attempting to load /config/TV.yml as both a collection file and a metadata file.

The latter attempt fails, as expected. This "error" can be ignored, or you can adopt the new attributes as shown in that auto-reply.

frozen prawn
#

Thank you! so were should I look in the documentation to see what this look like

teal kettle
#

There's an example in this thread just above.

#

in the wiki it's described in the config file section.

frozen prawn
#

I see thank you This still confuse me a bit and since I am not really using all the capabilities I will leave anything the same for now, unless you can make any suggestions. I am always willing to learn.

#

on a side note any Idea how to fix this erroe TMDb Error: No Show found for TMDb ID: 157088

teal kettle
#

You probably have this:

libraries:
  TV Shows:
    metadata_path:
      - file: config/TV.yml

Change that to:

libraries:
  TV Shows:
    collection_files:
      - file: config/TV.yml
teal kettle
frozen prawn
#

this is what I have
TV Shows05:
metadata_path:
- pmm: basic
- pmm: network
- pmm: franchise
- file: config/TV.yml

teal kettle
#

Can't make head or tail of that broken formatting, but probably all you need is to change metadata_path to collection_files.

frozen prawn
#

thank you again

teal kettle
#

Anything further needed here?

teal kettle
#

@frozen prawn ?