#Errors Running config

1 messages · Page 1 of 1 (latest)

silver ice
#

I am trying to customize my PMM config but couldnt figure out the errors.. can you help me read the error or how to identify which line is the cause

loud ravineBOT
#

Welcome!

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.

twin marten
#

You're missing overlay_path: just above the highlighted line

#

Little further down, this collections section [the 13 lines starting with the highlighted line] doesn't go here:

#

Same thing down in the TV section:

#

And TV on second plex:

silver ice
#

Thank you very much!

#

so where do collections go in the movies.yml? or can i add it in the config?

twin marten
#

collection definitions go in metadata files like movies.yml.

silver ice
twin marten
#

Sure, those define collections, and you'd refer to them in your config.yml.

silver ice
#

so i add a -git line in the config.yml?

#

sorry I'm a newbie to this

twin marten
#

Yes, you'd refer to that as:

   - git: Frexe/Movies/Metadata/Collections/300
#

But if you're new to this I would strongly recommend getting started with the built-in defaults rather than random files from the configs repo.

silver ice
#

can I add the whole directory or list each one?

twin marten
#

I think git is file-by-file.

#

But again, those files are maintained or not by their authors and may not work at all.

silver ice
twin marten
#

Just trying to save you some frustration.

silver ice
#

understood

#

much appreciated

silver ice
flat cloudBOT
#

We highly recommend to use a decent editor software to manage PMM´s .yml files.

Standard text editors (such as Notepad and TextEdit) often save text in a rich-text format which can result in text formatted in a way that PMM cannot read. But not only that, they also make it very hard to visually distinguish the formatting, such as indentation.
PMM requires indents to always be multiples of 2 spaces, and not TAB stops. If you have one space too much, or too few, it is very hard to notice that with a editor like Notepad.
An editor that is more focused on editing code instead of text will automatically detect the .YML fileformat and adjust things to make it easier to work. They can also try to detect possible errors even before you actually run the .yml in PMM.

This can save a lot of time and headaches.

Visual Studio Code (Windows/Mac/Linux, Opensource & Free)
Website

**Notepad ** (Windows only, Opensource & Free)
Website

Sublime Text (Windows/Mac/Linux, Paid)
Website

For further details and a short list of highly recommended extensions, you can also take a look at our Reddit post.

gleaming tiger
#

you have bad indentation

twin marten
#

Among other problems.

#

The error points you to two lines:

         in "//config/config.yml", line 64, column 5
       expected <block end>, but found '<block sequence start>'
         in "//config/config.yml", line 103, column 7
twin marten
#

The config is fine up to line 64, column 5:

  Movies On Second Plex:
    library_name: Movies
    ^

And then the next line it refers to is line 103.

Here's lines 88 to 117. A lot wrong here:

    overlay_path:
      - remove_overlays: false
      - reapply_overlay: true
    # - reset_overlays: tmdb
      - pmm: audio_codec
    #- pmm: language_count
    #- pmm: commonsense
      - pmm: flixpatrol

This template_variables on line 96 should be four more spaces to the right, and the two lines below it two more spaces to the right.

    template_variables:
        position: left
        time_window: this_year
    #- pmm: languages
    #- pmm: languages
    #  template_variables:
    #    use_subtitles: true

and now line 103. Since template_variables above is outdented too far, this list element isn't recognized, so the error gets tripped at line 103 column 7:

      - pmm: mediastinger
      ^

Then a couple lines later the same problem with outdenting the template_variables on line 105-115:

      - pmm: ratings
    template_variables:
      rating1: user
      rating1_image: rt_tomato

      rating2: critic
      rating2_image: imdb

      rating3: audience
      rating3_image: tmdb

      horizontal_position: right

      - pmm: resolution

The same problems exist in both the TV libraries, along with these that don't go here in lines 143-145:

    sync_mode: sync
    summary: Popular TV on Plex+
    collection_order: alpha

Those probably won't cause errors, but they don't belong there and no one will be looking for them, so whatever you're trying to do won't happen.

silver ice
#

Fixed

Thank you very much everybody !

#

I need to learn how to correct my spacings

twin marten
#

Use a yaml-aware editor as a first step.

silver ice
#

I was using vs code but I fixed it manually on nano… the errors aren’t clear on vs code

loud ravineBOT
#

This post has been marked as Resolved and will be closed in one hour unless you send another message.

Once closed, you cannot reopen this thread - you must create a new one or ask a member of staff to reopen it in #general-chat.

Thanks for using Plex Meta Manager.

twin marten
#

VSCode for me:

#

Perhaps you need to install a YAML extension for that.

silver ice
#

I get everything but the wiggly lines

#

The colors pop up when I choose yaml from the bottom, right

twin marten
#

might be this extension:

silver ice
#

Thank you very much 🙏🏼

silver ice