#understanding how to properly make yml files
1 messages ยท Page 1 of 1 (latest)
Please complete #938455615741775902 and someone from the community or one of our <@&938443185347244033> members will respond when they're available.
Including the meta.log from the beginning is a huge help use !logs for more information.
OK. What's the issue? That YML file will show some red highlighting in VSCode because of the indentation, but it appears that PMM processes it OK.
im just trying to understand is it now supposed to have the indentation like that
Compare this:
templates:
collection:
| sort_title: +09_<<collection_name>>
| sync_mode: sync
| collection_order: custom
| |
----5----0
There's a heading, then the first level is indented by four spaces, then third level again indented by four spaces.
compare to this:
collections:
Fast and the Furious:
| template: {name: collection}
| |
----5----0
There's a heading, then the first level is indented by FIVE spaces, then third level indented by THREE spaces.
All of those indents should be consistent. Four spaces [or whatever] everywhere.
I use two spaces, but the key is that they have to be the same throughout.
ok that make so much more sense
I honestly can't imagine why changing this:
collections:
Fast and the Furious:
template: {name: collection}
to this:
collections:
Fast and the Furious:
template: {name: collection}
Would cause any errors.
I'd have to see a log of that happening.
uh let make one backspace real quick to show u
all i did was backspace
Can you provide the edited collections.yml?
of course
Did you perhaps only change the indentation on the first collection?
The indentation needs to be the same THROUGHOUT.
All those collections need to be indented by four instead of five.
Not just the first one.
i know i only did that to show the error that i normally get but let me redo it
yes when i do it throughput
I need to see a log of that correctly indented collections.yml causing a problem.
Not some half-edited collections.yml.
unless im just dumb or had and extra space somewhere i didnt realize but i just retried this and it built the collections
Can't offer much without seeing the problem happen. What you've described has never caused any errors that I've seen.
That log doesn't appear to contain any error related to reading this file.
yeah i mustve created my own errors and didnt realize it
It's got plenty of other errors, but none relating to indentation in collections.yml
Nope.
correct:
libraries:
Movies:
metadata_path:
- pmm: basic
...
TV Shows:
metadata_path:
- pmm: basic
...
Anime:
metadata_path:
- pmm: basic
...
playlist_files:
- pmm: playlist
not what you have:
libraries:
Movies:
metadata_path:
- pmm: basic
...
TV Shows:
metadata_path:
- pmm: basic
...
Anime:
metadata_path:
- pmm: basic
...
playlist_files:
- pmm: playlist
Note the difference in indentation on playlist_files, and, again, the consistency of indentation throughout.
You've got playlist_files indented too far [so it's under libraries instead of at the top level as it should be], and then the two lines under it are indented four spaces instead of the two you're using everywhere else.