#Update Rating (Critic + Audience from Rotten Tomatoes)

1 messages · Page 1 of 1 (latest)

exotic cedar
#

Hi Guys, I am having some general issue with editing the YML files. I use notepad ++ but it seems I am always creating errors in the file where PMM doesn't understand it. It's hard to tell if I need an extra space in the file or whatever. Now I want to have PMM update ratings on each run and I have it written in the config.yml like in the screenshot but it doesn't run. Any idea what I am doing wrong (example only shows critics for now)

hardy shale
#

as you have recognised indentation is very important when working with yaml files.
you can think of every indentation level as 2 empty spaces.
so judging from the screenshot you need an additional space for mass_critic_rating_update to move it a full indentation level under operations

#

also providing the text is more helpful than a screenshot 😉

elfin pawnBOT
#
Using Code Blocks

Please use code blocks when sending any code-related text (such as error messages or configuration file extracts.)

The Grave Accent key (`) is used to define code blocks and is typically found to the left of the number 1 key on a standard keyboard.

See the below sample text and output for basic code block text.

YOU TYPE THIS

`​`​`hello`​`​`

DISCORD DISPLAYS
hello

If you are posting any yaml-formatted text (such as collections), you can give your code block YAML formatting. See the below sample text and output

YOU TYPE THIS

`​`​`yaml
collections:
  Documentaries:
    smart_filter:
      all:
        genre: Documentary
`​`​`

DISCORD DISPLAYS

collections:
  Documentaries:
    smart_filter:
      all:
        genre: Documentary
#
Recommended Text Editors

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.

jolly urchin
#

@exotic cedar as much as i love np++ myself, using vscodium with 2 extensions has made a huge difference for me with pmm .yml files, maybe take a look at that to save you some headache

#

for np++ there is also a neat extension to kind of do auto indentation, only kind of, but better then nothing, its linked in our reddit post mentioned above

exotic cedar
#
libraries:                                      # This is called out once within the config.yml file                                       
  Movies:                                       # Each library must match the Plex library name
    metadata_path:
    - file: config/Movies.yml                   # This is a local file on the system
    operations:
      mass_critic_rating_update: mdb_tomatoes
playlist_files:
- file: config/playlists.yml
- git: PMM/playlist                             # This is a file within the https://github.com/meisnate12/Plex-Meta-Manager-Configs Repository
#

Thanks for your response guys, I am going to look into vscodium right now.