#I'm a noob trying to setup PMM on unraid.

1 messages · Page 1 of 1 (latest)

soft notch
#

Well, i won't lie. I am older than the average 'innovative person'. I saw the video and like every guy fascinated with new things, i wanted it.
I followed a few guides and after a few attempts and risk of blowing up the server i gave up.
A few months later i found a dev on reddit who was kind enough to let me find this server.

A brief about my setup.
Unraid 16gb ram 10tb raid5 p2200 amd3600 (i think). Mounted a Synology 1821+ to the server using UD.

Unraid is used for smaller projects, VMS, Dockers etc etc.
Synology 1821+ shr2 is used as the vault. All the Plex data is located here in a separate share called "Plex".
"English shows" "cartoons" etc. are as
Plex>English Tv><show1 single folder, show2......>
Plex>Cartoons><show1 single folder, show2......>
No season posters exists.
Plex>Music>Artists is mixed with a few folders having individual albums and a few just having a dump of all songs.
The only directory with a different directory structure is more complicated/unique.
Plex>Movies>A><movies starting with A>
Plex>Movies>B><movies starting with B>
.
.
.
Plex>Movies>Z><movies starting with Z>

It's just easier for me to index them this way and to my best effort, I'd like to maintain this.

I'm also not a very big programmer. I have very little coding knowledge but i don't mind a bit of elbow grease. I saw a few videos and read a few guides but i couldn't make a yml file. The last i coded seriously was C++ and during my final year at school, so it's been a while and the world has definitely evolved quite a bit. I'm hoping for someone to help me. I'm also hoping i don't destroy my storage, thus, I'm want to play it very safe.
Thank you.

celest sluiceBOT
#

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.

marsh tangle
#

Step 1: Where do you want to run PMM?

The unraid server? The synology? Some other machine?

soft notch
#

Hi Mr. Carrot.
Want to run PMM as a docker on the unraid server. Plex is already running there.

marsh tangle
#

PMM is perfectly safe WRT your files; it has no access to the file system and interacts with plex only through the API.

soft notch
#

So, there are no chances that i can kaboom my box?

marsh tangle
#

Not with PMM.

soft notch
#

Not sure if my first post is too long, but i wanted to cover everything.

marsh tangle
#

Worst case you download lots of images and use a lot of disk space, but PMM only reads/writes/deletes its own files.

#

One exception; when you set images with PMM, that image is uploaded to the plex server, so that will use storage. Nothing is ever deleted, though.

soft notch
#

I don't mind the storage on unraid. As of right now my unraid box is empty, with a few Dockers and VMs stored there. Till now I've managed to setup everything on my own. On PMM i got stuck at yml file creation.

marsh tangle
#

i got stuck at yml file creation

Meaning what specifically?

#

config.yml? Some other yml?

soft notch
#

How to create it. Like how do I make a yml file

marsh tangle
#

with a text editor. What goes in the files is covered in the wiki.

#

HOWEVER

#

PMM has a rich set of default yml files you can use without doing that.

soft notch
#

It might be a very stupid question, but this is where I'm stuck

soft notch
marsh tangle
#

Sure, notepad works. You would be well-served to use something like VSCode because it will help with syntax, but notepad is the minimum thing you need.

For example, in your config,yml:

libraries:
  Movies
    metadata_path:
      - pmm: basic

That would create some basic collections without you needing to create any additional YML files.

#

The ibracorp video predates this and is very long in the tooth.

#

I'd not rely on it any more.

#

So chances are you can create all the collections and overlays you want without writing any YAML files.

soft notch
marsh tangle
#

So, what are some examples of collections you would want to add to your Plex?

#

Also are all those movies split up into 26 Plex libraries, or is there just one Movies library?

soft notch
#

One movie library.

marsh tangle
#

OK, so in your config:

libraries:
  Movies:
    metadata_path:
      - pmm: basic
      - pmm: imdb
      - pmm: tmdb

That would create a half-dozen or so collections in the movie library without anything else required. [assuming the library is named "Movies"]

soft notch
soft notch
marsh tangle
#
libraries:
  "Movies Låß∂ªø¬ƒ∂":
    metadata_path:
      - pmm: oscars
      - pmm: imdb
      - pmm: flixpatrol
soft notch
#

These are my libraries

marsh tangle
#

If you want to tune that further, say you don't want the IMDB lowest rated:

libraries:
  "Movies Låß∂ªø¬ƒ∂":
    metadata_path:
      - pmm: oscars
      - pmm: imdb
        template_variables:
          use_lowest: false
      - pmm: flixpatrol
zenith smelt
#

Oh my lord

#

now that's a unique library naming list 🤣

marsh tangle
#

Oh, I didn't realize I was dealing with a sociopath.

soft notch
#

Hahaha. Sorry...

#

Till yesterday they were the inverted text... Like the last library of Fifa World Cup

zenith smelt
#

Oh I had no idea what that said

marsh tangle
#

Well, presumably you can enter those in the config wrapped in quotes.

zenith smelt
#

Are you just a continuous April Fools server?

#

🤣

marsh tangle
#

But I am certain that there is no testing done on such a pathological case.

soft notch
marsh tangle
#

In any case, that should give you enough to get started.

soft notch
#

Once it works, i can try double quoting the text of my libraries

zenith smelt
#

You don't really need to

#

If PMM/YAML struggles with the characters, it'll just error out saying that the library doesn't exist

#

or will complain that it can't read what you've written

soft notch
#

Hopefully PMM doesn't block me for the font. 😂

marsh tangle
#

A small test library is ALWAYS a good idea even in the absence of such user-hostile naming, so you can run tests quickly and try things without waiting hours for 50000 movies to get read.

soft notch
gleaming egret
soft notch
#

Hi sohjiro. Thanks for the invite

gleaming egret
#

Hey! Glad you like the program

soft notch
#

Can I use a second instance of 1 api of TVDB?

#

I had an unused API which I used on Synology. Can I use the same key here?

#

Or should I request for another one

gleaming egret
#

We don’t use the TVDB api around here

soft notch
#

Sorry... Meant TMDB api.. sorry got confused

gleaming egret
#

Why would you need to use more then one

soft notch
#

So the one I got a few months ago, i just used it on DS Video (Synology media server)

#

I could stop that and use the API, correct??

zenith smelt
#

You can use the same API key across several services

gleaming egret
#

You only need one key it’s not rate limited so there just not really a reason to ever need to use a separate key per service

marsh tangle
#

I use the same API keys for all services across three separate PMM instances.

soft notch
#

Please check if this config file is good?

zenith smelt
#

that looks fine

#

sending the file is always preffered over a physical image

static oarBOT
#
Screenshot Usage

Please avoid posting screenshots of text-like log output or your yaml configurations. They are very hard to read to find errors and we cannot scroll through the text to see other context. Post actual text instead, formatted with code-blocks (type !code for more info on this).

If you feel that it's too long, you can directly attach the entire file to your Discord message

Thank you

marsh tangle
#

It needs to have a bunch more in it, but what you have there is fine so far.

soft notch
#

Awesome... Thanks guys..

#

New library created for test 27 files from best worst and top 250.

#

Just the config file is good for now or do i need a library yaml done as well before the first run?

#

As of now my PMM app data folder has just config.yml file

marsh tangle
#

That's fine, but your config file needs plex and tmdb details in it at a minimum

#

You don't need any of your own metadata yml files if you don't want

soft notch
#

I saw a very long config file (uploaded as an example), but since it had many fields i didn't use it

zenith smelt
#

most things below settings: is what you need

marsh tangle
#

You must have these bits filled in:

plex:                            # Can be individually specified per library as well; REQUIRED for the script to run
  url: http://192.168.1.12:32400
  token: ####################
  timeout: 60
  clean_bundles: false
  empty_trash: false
  optimize: false
tmdb:                            # REQUIRED for the script to run
  apikey: ################################
  language: en

Everything else [aside from the library config, of course] is optional

#

PMM has to be able to connect to Plex and has to be able to connect to TMDB.

soft notch
#

Got it

zenith smelt
#

use code blocks

static oarBOT
#
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.

If you are posting any yaml-formatted text (such as collections), you can add yaml to your Grave Accent keys for coloured 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
soft notch
#
  Movies:                        # Each library must match the Plex library name
    metadata_path:
      - pmm: basic               # This is a file within the defaults folder in the Repository
      - pmm: imdb                # This is a file within the defaults folder in the Repository
      # see the wiki for how to use local files, folders, URLs, or files from git
    overlay_path:
      - remove_overlays: false   # Set this to true to remove all overlays
      - pmm: ribbon              # This is a file within the defaults folder in the Repository
      # see the wiki for how to use local files, folders, URLs, or files from gitplex:        plex:                            # Can be individually specified per library as well; REQUIRED for the script to run
  url: http://192.168.1.xx:32400
  token: Csxxxxxxxx6o
  timeout: 60
  clean_bundles: false
  empty_trash: false
  optimize: false
tmdb:                            # REQUIRED for the script to run
  apikey: 3axxxxxxxxxxxxxx1
  language: en
#

is this good?

zenith smelt
#

nope

#

that plex: on the right side needs to be on the next line at the very left

soft notch
#

okies got it

marsh tangle
#

I'm not a fan of those giant comments since it makes it harder to read.

libraries:
  Movies:
    metadata_path:
      - pmm: basic
      - pmm: imdb
    overlay_path:
      - remove_overlays: false
      - pmm: ribbon
plex:
  url: http://192.168.1.xx:32400
  token: Csxxxxxxxx6o
  timeout: 60
  clean_bundles: false
  empty_trash: false
  optimize: false
tmdb:
  apikey: 3axxxxxxxxxxxxxx1
  language: en
soft notch
soft notch
marsh tangle
#
      # see the wiki for how to use local files, folders, URLs, or files from gitplex:        plex:                            # Can be individually specified per library as well; REQUIRED for the script to run

That appears to be all one long line, which wouldn't have worked, besides the two instances of plex: in there.

soft notch
#
Traceback (most recent call last):
  File "//plex_meta_manager.py", line 101, in <module>
    screen_width = get_arg("PMM_WIDTH", args.width, arg_int=True)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "//plex_meta_manager.py", line 69, in get_arg
    return int(final_value)
           ^^^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: ''
#

this is from the logs of the PMM (official docker) on unraid

marsh tangle
#

Oh, this is unraid.

gleaming egret
#

switch to nigthly

marsh tangle
#

OR delete the empty ENV vars from the template.

gleaming egret
#

or switch to nightly

soft notch
#

Update

#

So now there is a UUID file created and a logs folder which is empty as of now

#

P-M-M nightly is running in the docker tab.
with first option as console

#

Ummmm.... Sorry to ask... What next? Coz even the documentation goes to viola

#

Library yaml?

marsh tangle
#

If the container does not have PMM_RUN set to True, it's waiting until 5AM to wake up and do things.

#

You do not need a library yaml.

soft notch
#

Oh ok... I'll change that

marsh tangle
#

With PMM_RUN, the container will run PMM inmmediately and then exit.

soft notch
#

adding -r to extra parameters shows activity in the logs

marsh tangle
#

That's the equivalent of PMM_RUN as an ENV var

soft notch
#

This is good. Correct??

marsh tangle
#

Looks to be running fine.

soft notch
#

Yasssss...

#

Now to go mad with happiness

zenith smelt
#

Woohoo!

soft notch
#

i was able to add more things like disney top 10 etc

#

next step : to take it to the big library

#
  "Movies 爪ㄖᐯ讠🝗丂":
    metadata_path:
    - pmm: basic
    - pmm: imdb
    - pmm: oscars
    - pmm: imdb
    - pmm: flixpatrol
    overlay_path:
    - remove_overlays: false
    - pmm: ribbon
plex:
  xxxxxxxxx```
rest of the bottom part unchanged
#

might i add..i'm already further than any of my previous attempts and I'm still excited enough to rename my libraries to non sociopathic normal human kinds

#

also I want to know, say I have more than 1 TV show library, how does it work>??

  <library name of tv show 1 on plex>:
    metadata_path:
      - pmm: basic
      - pmm: imdb
    overlay_path:
      - remove_overlays: false
      - pmm: ribbon
  <library name of tv show 2 on plex>:
    metadata_path:
      - pmm: basic
      - pmm: imdb
    overlay_path:
      - remove_overlays: false
      - pmm: ribbon
            ```
marsh tangle
#

Just like that.

#

You can use yaml anchors to reduce redundancy, but this will work fine.

soft notch
#

@marsh tangle the special characters string didn't work. Any idea?
Currently I've added the entire Plex Movies to the temporary library Movies to check. But i think the special characters seem to be the issue.

zenith smelt
#

The only other thing that could be done (not by you) is for Sohjiro to allow for library ID mapping rather than name mapping

soft notch
#

Yeah.. did that to the original Movies library and removed the temporary . . Seems to be working well..

marsh tangle
#

What does "didn't work" mean?

#

Error? Fire?

soft notch
zenith smelt
#

If it works perfectly fine with "Movies" but not with "爪ㄖᐯ讠🝗丂" then the library name is the issue

soft notch
zenith smelt
#

so

soft notch
#

I have attached a log. Hope it's visible

zenith smelt
#

your problem is

#

you called your library Movies 爪ㄖᐯ讠🝗丂

marsh tangle
#

The library isn't called "Movies 爪ㄖᐯ讠🝗丂", is it?

zenith smelt
#

your options are:
['Movies', 'ᗪㄖ⼕ㄩ爪🝗𝓝〸闩尺讠🝗丂', '爪ㄖᐯ讠🝗丂', 'ᗪ卄闩闩尺闩ᐯ闩卄讠长', 'ᗪ讠丂⼕ㄖᐯ🝗尺丫', '丂卄ㄖ山丂', '⼕闩尺セㄖㄖ𝓝丂', '爪ㄩ丂讠⼕', 'Test Videos', 'ᖶᴉɻɑ Moʁɼq Cnb']

marsh tangle
#

Isn't it just "爪ㄖᐯ讠🝗丂"?

soft notch
#

Ohhh

#

Sorry

soft notch
#

Now i understand

marsh tangle
#

This error:

Plex Error: Plex Library 'Movies 爪ㄖᐯ讠🝗丂' not found. Options: ['Movies', 'ᗪㄖ⼕ㄩ爪🝗𝓝〸闩尺讠🝗丂', '爪ㄖᐯ讠🝗丂', 'ᗪ卄闩闩尺闩ᐯ闩卄讠长', 'ᗪ讠丂⼕ㄖᐯ🝗尺丫', '丂卄ㄖ山丂', '⼕闩尺セㄖㄖ𝓝丂', '爪ㄩ丂讠⼕', 'Test Videos', 'ᖶᴉɻɑ Moʁɼq Cnb'] 

means:
"I can't see a library called 'Movies 爪ㄖᐯ讠🝗丂'; but I can see these libraries: ..."

zenith smelt
#
libraries:
  M o V i E s:  # THIS MUST MATCH A LIBRARY IN YOUR PLEX, AND IS CASE SENSITIVE
soft notch
#

Maybe it's just the lack of caffeine in the body...

zenith smelt
#

or maybe it's the bizarre library names 👀 🤣

soft notch
#

0345, and the adrenaline isn't dying

soft notch