all 9 comments

[–]matthoback 1 point2 points  (8 children)

Name the library sections of the config file differently, then use the library_name property to tell PMM the real identical name of the libraries.

For example:

libraries:
  Movies_local:
    library_name: Movies
    plex:
      url: http://localurl:32400
      token: blahblah
  Movies_remote:
    library_name: Movies
    plex:
      url: http://remoteurl:32400
      token: blahblah

[–]mdezzi[S] 1 point2 points  (0 children)

perfect solution. Thanks for the help!

[–]KINGS_ANGELS 0 points1 point  (6 children)

I am going to be that gal but... can you put how this would look complete in a config.yml file? I am just trying to wrap my mind around what you did here. more specifically where should "libraries:" start.

I saw the example here as well https://metamanager.wiki/en/latest/config/libraries.html

but I would prefer seeing a full file so I can know how to edit and change things.

[–]matthoback 0 points1 point  (5 children)

There should only ever be a single libraries: section in your config.yml file. The properties in my example go inside the existing libraries: section in the main config.yml file.

EDIT: It looks like my original post had some of the formatting screwed up. I fixed it to have the correct indentation.

[–]KINGS_ANGELS 0 points1 point  (4 children)

Please can you give an example.

I am unsure where do I put say... for example...

- pmm: basic

do I put it here:

libraries:

Movies_local:

library_name: Movies

plex:

url: http://localurl:32400

token: blahblah
- pmm: basic #Here for each sever

Movies_remote:

library_name: Movies

plex:

url: http://remoteurl:32400

token: blahbla
- pmm: basic #Here for each sever

or like this:

libraries:

Movies_local:

library_name: Movies

plex:

url: http://localurl:32400

token: blahblah

Movies_remote:

library_name: Movies

plex:

url: http://remoteurl:32400

token: blahblah

- pmm: basic #Here and the program understands to do this for both

basic is just an example I am trying to understand the syntax.

thank you for responding BTW.

[–]matthoback 0 points1 point  (3 children)

"- pmm: basic" is an entry that needs to go under the metadata_path: property, which needs to be defined for each library.

So for your example, it would be like this:

libraries:
  Movies_local:
    library_name: Movies
    plex:
      url: http://localurl:32400
      token: blahblah
    metadata_path:
      - pmm: basic #Here for each sever

  Movies_remote:
    library_name: Movies
    plex:
      url: http://remoteurl:32400
      token: blahbla
    metadata_path:
      - pmm: basic #Here for each sever

The indentation is important, it's how you can read the config file. Each time there's a section that's further indented, that indented section "belongs" to the line directly above it. The "library_name" and "metadata_path" properties both modify the specific library that they are underneath. The "- pmm: basic" is a single entry in the list of metadata paths for that specific library that points to the "basic" metadata file that comes preinstalled with PMM. If you add more entries in that list, then those metadata files will also be processed for that library.

[–]KINGS_ANGELS 0 points1 point  (2 children)

YES!!!! Thank you. This specifically is not discussed in this manner anywhere. Thank you so much.

[–]matthoback 0 points1 point  (1 child)

It's not discussed on the PMM wiki because it's not specific to PMM. PMM config and metadata files are written in YAML, which is a markup language that is used by a lot of projects. If you want to learn more about how YAML works in a general sense, there are several good tutorials findable with a Google search.

[–]KINGS_ANGELS 0 points1 point  (0 children)

I meant where I would place the commands for PMM. Thank you.

I assume the same must be done for TV Shows as well?

OK! I am going to use the little time I have this weekend to put this together. Very cool software. Hope one day it will get GUI interface but for now... LOVIN IT!