#PMM is creating duplicate automated TV collections for me

1 messages · Page 1 of 1 (latest)

rich widget
#

Not sure if related to TPDB going down but my PMM is creating duplicate automated TV collections for me each time I run it. Existing PMM automated collections are now showing as empty when opening.

icy vortexBOT
#

Welcome @rich widget!

It looks like you have not yet completed #938455615741775902, this will allow us to help you quicker.

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.

midnight basinBOT
#

1: Go to your config folder

2: Go into the logs folder

3: Look for meta.log (not meta.1.log etc)

4: Drag it in the Discord thread - the whole thing, DO NOT EDIT IT

5: Still confused? ¯\(ツ)

Log file too big? USE PASTEBIN or ZIP THE FILE

rich widget
icy vortexBOT
#

📝 If you want to review this again, drunkencolumbus:
:one: Right-click (or long press with phone) on the message that contains the log
:two: Select: Copy Message Link
:three: Use the command: /logscan <message_link> or !logscan <message_link> and paste the value copied from the previous step where you see <message_link> 📝

#
**User Info**

Author of Linked Message: DrunkenColumbus
Person who Invoked the Command: DrunkenColumbus
File Name: meta.log

Table of Contents:
Page 01: User Info
Page 02: PMM Info
Page 03: PMM Summary Info
Page 04: PMM Config.yml YAML Validation
Page 05: Plex Configuration - Section 1
Page 06: Plex Configuration - Section 2
Page 07: Plex Configuration - Section 3
Page 08: Rec 01 - ❌ [ERROR]
Page 09: Rec 02 - ❌ METADATA ATTRIBUTE ERRORS
Page 10: Rec 03 - ❌ METADATA LOAD ERRORS
Page 11: Rec 04 - ❌ TO BE CONFIGURED ERROR
Page 12: Rec 05 - ⚠️ [WARNING]

wintry harness
#

That's normally some form of Plex database corruption

rich widget
#

not sure if related but the logs show 3 different hulu folders now too

wintry harness
#

Plex doesn't let two collections exist with the same name

#

I'd try running DBRepair tool or something

rich widget
#

shouldn't the PMM be replacing the collections as it runs too? I thought that's what it was doing pretty well up until recently

#

I'm really bad/new at Unraid/commands, trying to figure out how to use the DBRepair tool for Unraid right now.

rich widget
#

I've run a few checks and the databse seems fine

#

everything else on plex seems to work fine too. Maybe it's a PMM config error?

wintry harness
#

Unfortunately no

#

Plex does not allow two collections to exist with the same name

#

If that's happening, there is an issue with Plex

#

It should never create that second and third collection

#

All PMM does is make API calls, Plex is responsible for saying "Hey, I already have a Hulu collection so I'll update that one"

Instead it's saying "cool let me create a Hulu collection", bypassing the check to see if one already exists

rich widget
#

ughhhhhhhh

wintry harness
#

you have some issues with files/collections being called twice

#

but that's not causing this

rich widget
#

I tried to manually fix the database but came up with no errors

#

brain too small to figure out how to use this with Unraid

#

I can try Optimizing Database?

wintry harness
#

You can try it

rich widget
#

ran it, duplicate collections are still around

wintry harness
#

It wouldn't automatically delete them

#

you'd have to delete them and see if they're recreated

rich widget
#

alright I'm gonna delete the duplicates > Optimize Database > run PMM

#

then we'll see what happens

#

no issues for the Movie collections i've had it automate for me either, only the Network related collections

rich widget
#

original still shows up as blank, updated one without a poster is created again

wintry harness
#

i think this needs the DBRepair to see if that works

#

If that fails, I would look to recreate the library

rich widget
#

I know it's a lot to ask, but do you think you could help walk me through how to use DBRepair with Unraid?

wintry harness
#

Someone from the team might know how to set up DBRepair in Unraid

#

@flat cliff maybe?

rich widget
#

I would definitely appreciate it

#

I'm outta my depth here

wintry harness
#

He's a busy guy, might take him a little bit to respond

rich widget
wintry harness
#

Database corruption is a fickle thing 🙂

rich widget
rich widget
flat cliff
#

Wazzup

wintry harness
#

Bonjour

flat cliff
#

Unraid stuff?

wintry harness
#

Setting up DBRepair within Unraid

#

Any ideas?

flat cliff
#

ezpz

#

format everything

#

lol

wintry harness
#

We have suspected database corruption

#

duplicate collections

flat cliff
#

right... so its so simple that its stupid

#

but does take a little time

rich widget
flat cliff
#

its 1 file that you need to put into 1 folder

#

then run it from within the container

#

so where do you wanna start?

rich widget
#

start from the beginning I guess lol

wintry harness
#

so I was born in 1992

flat cliff
#

did you download the file?

rich widget
#

say I'm on a windows PC running things

wintry harness
#

oh

#

that beginning

rich widget
#

ok, I'll download the file

#

w-which file?

flat cliff
rich widget
#

ok got it

flat cliff
#

drop that into the following directory

#

i presume that you have a plex directory

rich widget
#

a bit more into the files than yours but it should be here right?

flat cliff
#

not there

#

put it in the root of Plex-Media-Server

rich widget
#

ok done

flat cliff
#

perfect...

#

you know how to console into a container in unraid?

#

In docker tab left-click on plex icon, choose >_Console

rich widget
#

should I stop Plex while we do this or can it run?

flat cliff
#

no. leave it on

#

if its off, you cann ot interactively log into the container

rich widget
#

alright console open

flat cliff
#

ls -al

#

show me output

rich widget
flat cliff
#

hmmm... cd config

#

ls -al

#

trying to find the DBRepair.sh

rich widget
flat cliff
#

perfect

#

chmod 777 DBRepair.sh

#

ls -al and share

rich widget
flat cliff
#

Perfect!!!
./DBRepair.sh

#

and share screencap

rich widget
flat cliff
#

case sensitive

#

I fixed it above

rich widget
flat cliff
#

select 1 and it will stop the PMS process ithint the container

#

get a confirmation that it is STOPPED

#

then choose 2

rich widget
#

okay gimme a sec to let someone know that it's gonna stop

#

alright stopping

#

alright

#

it's doing its thing

flat cliff
#

2

rich widget
#

yeah I did 2, it's running

rich widget
#

everything looks... okay?

#

I did SQLite earlier and got an OK too.

flat cliff
#

yup

#

7

#

to restart pms

#

wait for confirmation that PMS is started

rich widget
#

ok it's Started

flat cliff
#

type exit

rich widget
flat cliff
#

and then exit again to exit the console to the PLEX container

rich widget
#

Y/N?

flat cliff
#

Y

rich widget
#

ok exited

flat cliff
#

back over to you @wintry harness

rich widget
#

so the database is fine?

#

not a database issue?

wintry harness
#

now turn off your computer

#

don't turn it back on

flat cliff
#

hahaha

wintry harness
#

problem solved, keep the computer off

#

😄

wintry harness
#

So now delete the collections

#

and run PMM a couple times

#

see if Plex is still being a little sh*t

rich widget
#

alright standby

#

should I remove the old collections too?

#

let it run fresh?

wintry harness
#

yes

rich widget
#

says 21 items but nothing shows up when I open it

#

alight, I'll delete all the TV PMM collections

#

I'm suffering

flat cliff
#

looks normal to me

#

check the pms logs

rich widget
flat cliff
#

are you getting the Busy DB Sleeping 200ms

boreal arch
#

the console in the plex server settings.

flat cliff
#

it would also show in the log they shared

#

but id also look at the logs in PMS server as other stuff might be posted there

boreal arch
#

I've never seen that in the docker logs.

flat cliff
#

queue unraid yu scamp image

boreal arch
#

Huh.

rich widget
#

yeah not getting Busy DB at all

#

I can't even open TV Shows in Plex now

flat cliff
#

hmmm

rich widget
#

situation has gone from bad to worse 😭

flat cliff
#

most of this is not making much sense to be honest

rich widget
#

playing media works tho

flat cliff
#

how do you currently play media that is in TV Shows?

rich widget
#

from the Home page

flat cliff
#

your previous statements seem contradictory

rich widget
#

I can switch between Home and Movies with no issue, but get slapped with the Something Went Wrong as soon as I try opening TV Shows

flat cliff
#

you may need to recreate your TV Shows library

rich widget
flat cliff
#

Try Creating a TV Shows2 library

#

and point to the same folder

rich widget
#

ok

#

we're getting there

#

it's loading in the shows right now

#

would rolling back the database be a solution?

#

gonna lose a lot of work if I create the TV Shows library from scratch again

#

but yeah @flat cliff, creating TV Shows2 works and TV Shows (original) doesn't

#

stopping TV Shows2, taking up a lot of CPU for a troubleshooting step

#

UPDATE: Restarting the Plex container fixes it, but it immediately reverts to not being able to load as soon as I try to delete a single one of the misbehaving collections

#

Collections that are causing Plex to crash now are identifiable via Mobile btw. They have a square shape instead of the standard poster size

#

christ, this is maddening

#

Ok. Is there a way to delete this broken collections without doing it from the Plex UI (which crashes every time I attempt it)?

#

the only affected collections are ones that PMM manages.

flat cliff
#

never ever seen this before

#

square icons

#

phone works but not elsewhere

#

delete teh collections by manually selecting them in plex and deleting them

#

but if you cannot get to TV SHows, not sure how you can select the collection tab

#

to then select the collections to delete

#

pmm run with -dc will delete all collections

#

ALL

rich widget
flat cliff
#

you can try and restore a backup

#

not sure how you ended up here and in this state

#

restore seems like the proper course

#

or try using pMM to delete those collections

rich widget
flat cliff
#

Not that I can think of

#

How good are you with python?

rich widget
#

terrible

#

gonna try to restore database

flat cliff
#

But there is nothing that I can think of that says in pmm delete this 1 collection

flat estuary
#

delete_collections_named

#

You can use that attribute

flat cliff
#

Others may know

flat estuary
#

To delete collections

flat cliff
#

Oh heck

#

1 specific collection

#

TIL

#

@rich widget

rich widget
#

So what I did was restore from a database backup from a few days ago

#

and immediately delete all my PMM collections for TV

#

this worked immediately

#

running PMM again to see if the problem occurs again

#

if it does, then it's 100% a PMM issue

#

all Network and TMDB collections deleted

#

now running again to see if duplicates pop up

#

actually not sure why posters are not popping up for a lot of them

#

not just a TPDB issue, it's a "these were the same collections that got corrupted last time" issue

#

okay, it's replicable @flat estuary @flat cliff

#

it's definitely something in my config that's corrupting the database every time

flat cliff
#

How do we know db is not corrupted before you start?

rich widget
#

because the only issue are the hyper specific PMM collections and every time I delete everything and run PMM again, they're the same collections that get created and corrupted all over again

icy vortexBOT
#

The following was shared by @rich widget and was automatically redacted by Luma as it may have contained sensitive information.

If you feel this message should not have been redacted, resend it with !noredact in your message to avoid redaction.

#

The following was shared by @rich widget and was automatically redacted by Luma as it may have contained sensitive information.

rich widget
#

please review my configs again and see if something is off

#

it has to be the issue

flat cliff
#

So if we take your tv.yml and use it in our Plex, corruption will happen?

rich widget
#

"corruption" is a strong word, but it definitely causes an error that makes it difficult to delete collections without a "Something went wrong" error

#

every time

#

until the culprit is specificly identified, I've restored from an older database and disabled PMM

flat cliff
#

Version of Plex ?

rich widget
#

4.116.1

flat cliff
#

Server version

#

Not client

rich widget
flat cliff
#

Perfect I think I am already running that version

#

Can you share how you call TV.yml?

midnight basinBOT
#

You have been asked to provide your config file, which will allow us to support you further.

Please DO NOT share your config.yml file as is without redacting it. It contains information that you do not want the public to have, nor do we need it to troubleshoot your scenario in MOST cases.

We will use a regex parser to redact the file for you.

:one: Goto https://regex101.com/r/DMo1DQ/latest
:two: Copy the contents of your config.yml to the TEST STRING box in that page
:three: The results will be immediate and found in the SUBSTITUTION box below
:four: From the SUBSTITUTION box, select all, then copy and paste the redacted text into the channel where you want to share your config. (You will see (redacted) where confidential information was replaced)

Consider using Discord code blocks when sharing small parts of your config file. Check out !code for more info on code blocks

rich widget
#

the file name is already shown above

flat cliff
#

How are you running this file within your config.yml file.

#

You gave me the file but I want to replicate how you run it

#

Hence my request for a redacted config.yml

#

I will just run it as is with my test library

boreal arch
#

There's a redacted config above

flat cliff
#

Ahhh k

#

Literally the message above and I did not scroll high enough

rich widget
#

I'll be glad to run PMM again once I/we can figure out what kind of redundancy or error is written into the config files here

#

just too frustrating to keep restoring my database over and over again to pinpoint it

flat cliff
#

I'm still running

#

Can you share what I should look for once it completes or the repro steps?

rich widget
#

(1) run PMM at least twice or three times in a row

above screenshot shows broken collections for me
(2) See if duplicate collections show up. Try to open collections that show up as square in the screenshot below(they won't be square for you, but these are the ones that gave me issue)
(3) attempt to delete the problematic collections
(4) crash with "Something went wrong" as soon as the context menu opens up for a problematic collection

#

luckily I have lots of database backups so I didn't lose much to fix things. But I lost literal hours trying to troubleshoot. For now I'm happy with PMM disabled until the problem can be pinpointed,.

flat cliff
icy vortexBOT
#

📝 If you want to review this again, bullmoose20:
:one: Right-click (or long press with phone) on the message that contains the log
:two: Select: Copy Message Link
:three: Use the command: /logscan <message_link> or !logscan <message_link> and paste the value copied from the previous step where you see <message_link> 📝

#
**Plex Configuration** - Section 1

Using Asset Directory: \NZWHS01\appdata\Plex-Meta-Manager\assets
Connected to server NZWHS01 version 1.32.6.7557-1cf77d501
Running on Linux version 6.1.64-Unraid
Plex DB cache setting: 2048 MB
PlexPass: True on Public update channel.
Scheduled maintenance running between 2:00 and 5:00
Connected to library TestTV Shows
Type: Show
Agent: tv.plex.agents.series
Scanner: Plex TV Series
Ratings Source: N/A
TestTV Shows Library Connection Successful

rich widget
#

collections that got borked for me were: Apple TV+, Disney+, FX, HBO, HULU, NETFLIX, and PRIME

flat cliff
#

I am actually on a slightly earlier version of Plex... just noticed

rich widget
flat cliff
#

Ok. So run 1 is done. Now I need to run it again

#

So I understand, can you take a screenshot of what your Plex looks like now after the restore? If it's somewhere in this thread, please link it?

rich widget
#

back to normal

#

icons are custom btw

flat cliff
#

As well the message here states to look for duplicates... #1193991180615172348 message. It the image has no duplicates showing, correct?

Discord

Discord is the easiest way to communicate over voice, video, and text. Chat, hang out, and stay close with your friends and communities.

rich widget
#

have you only run it twice?

#

no duplicate collections have appeared?

flat cliff
#

It's still running second time

#

FYI, what do you mean by custom icons?

rich widget
#

which means that they won't have icons when you run it on your end

rich widget
flat cliff
#

So all those poster images are coming from tpdb?

rich widget
#

only for the ones I just mentioned

#

the rest draw from a github

flat cliff
#

Yup I can repro

#

Happened to me

#

Square icons

rich widget
flat cliff
#

I haven't tried to delete yet

#

Was running pmm a 3rd time

icy vortexBOT
flat cliff
#

so my last 3 runs

#

wanna make sure idocument

rich widget
# flat cliff

At this rate you’ll have the same number of HBO collections as HBO streaming services attempts in the last 10 years lmao

flat cliff
#

Now phone images

rich widget
#

Somehow on mobile it KNOWS which ones are broken and they show as square

boreal arch
#

After six runs I have no duplicates.

flat cliff
#

Interesting how the web client does not seem to show the square icons

#

Chaz, version of Plex for you is 1.29 or are you testing on something else?

boreal arch
#

This server running 1.32.8.7639

flat cliff
#

Ok so same as DrunkenColumbus

boreal arch
#

hove now run a few more times with no problems.

flat cliff
#

Gonna try and delete the strange collections via Plex web client

boreal arch
#

First run created these 16 and they have remained.

wintry harness
#

Unraid issue maybe?

flat cliff
#

Holy cow

#

When I delete the collections with 4 pics, delete worked

wintry harness
#

What's the minimum config to reproduce this? I can do a couple quick runs on my end

flat cliff
#

As soon as I clicked on the first Disney one, top left, immediate crash. Plex is ded

boreal arch
#

I just referenced the linked TV.yml into my regular pmm-test-config.

wintry harness
#

ty

flat cliff
#

None of my libraries are visible

#

All report something went wrong

boreal arch
#

hotio container?

flat cliff
#

Yes

boreal arch
#

@rich widget also hotio container?

#

I'm using official.

flat cliff
#

FYI, my test library already had my kitchen sink config applied.... then I ran DrunkenColumbus tv.yml

#

And I already had the collections that then became dupes

boreal arch
#

did a run with -dc, then two without after that, still fine.

wintry harness
#

So I'm in no ways trying to skirt around this issue

#

But if you aren't doing any Sonarr things, wouldn't it be quicker for you to use smart filters on the network? And they would auto-update as you add new media.

#

rather than having to parse network lists from tmdb?

flat cliff
#

First run was hell

#

Second was a minute

#

After cache kicked in

rich widget
wintry harness
boreal arch
flat cliff
#

So Plex recovered

wintry harness
boreal arch
#

I am not. This is ubuntu.

wintry harness
#

So maybe an ubuntu web server issue?

flat cliff
#

I went back, deleted two with the 4 posters images and that worked

rich widget
wintry harness
flat cliff
#

If I click on the select for the other square logo ones... immediate crash

wintry harness
#

Generally speaking square logos are reserved for playlists, so that is wild behaviour

rich widget
#

I'm not totally upset about it either since by Network seems more reliably categorized

wintry harness
#

We can discuss moving over to smart filters once we iron this out 🙂

rich widget
#

plus I want the IMDB popular and trending collections too

wintry harness
#

I would actually be interested in seeing if a Smart Filter version of this produces the same crash

rich widget
#

I actually highly doubt it

wintry harness
#

So do I for some reason

#

I'm on HGTV on my first run

rich widget
#

besides, I'd rather have PMM be the automator of these things than have to do a Smart Collection for every. single. network.

#

that's the whole point of PMM

wintry harness
rich widget
#

lost my IMDB collection for TV tho

boreal arch
#

The ones that PMM created for me from your YML are all smart collections from the get-go.

wintry harness
#

they're Smart Label collections

rich widget
#

they had a gray gear icon before, now they're purple

#

idk if that makes sense

#

you can scroll up and compare

wintry harness
#

I see that in your screenshots yeah

#

Can't explain that 😄

rich widget
#

we got 3 moderators in this chat and still scratching our heads lmao

boreal arch
wintry harness
#

They have - pmm: imdb

boreal arch
#

OK so that seems totally expected.

wintry harness
#

I'm at Prime Video

#

God this takes a long time

boreal arch
#

I also don't get the talk about switching to smart labels; the existing TV.yml is all smart labels.

wintry harness
rich widget
#

I have a notably much smaller library than most, and have mine set to ignore any networks for which there are not a minimum of 3 items

wintry harness
#

and doing

smart_filter:
  all:
    network: <<network>>
#

so that you don't have to reach out to TMDb at all

boreal arch
#

Ah.

wintry harness
#

avoids all of this parsing malarky

rich widget
#

would be much obliged

wintry harness
#

Yeah we want to work this out first I think

boreal arch
#

I, for one, can't reproduce any problems.

rich widget
#

also I really miss TPDB, hope they get their site fixed soon

wintry harness
#

I'm sure they'll find a solution 🙂

rich widget
#

makes no sense

wintry harness
#

Both plex images (hotio/plexinc) would use the same/similar underlying "base" image, right?

rich widget
#

perhaps

flat cliff
#

Same tags in docker

rich widget
#

I really don't know if the image is to blame since the config files reproduced the issue

#

but anything's possible I guess

wintry harness
#

The only common denominator right now we're aware of is that both of you are on unraid

flat cliff
#

I have been using the kitchen sink config forever and never saw this until I ran your tv.yml against it

rich widget
#

there's not even a lot of stuff in the TV.yml either

#

maybe it's the config.yml?

#

is the Sync Mode right?

wintry harness
#

I don't like being defensive but I don't see any way right now how this can be a PMM issue

#

all PMM is doing is making API calls

#

If the API call is invalid, Plex would reject it
Plex is accepting those API calls, and something internal to Plex is then causing it to start causing these issues

#

That's my take on it anyway

flat cliff
#

Check that out

#

It does not crash server

rich widget
flat cliff
#

Web client goes dumb dumb until you hit f5 to refresh, log back in and try to delete and it will crash

wintry harness
#

This isn't something you've "done" from what I'm seeing

#

You've likely discovered a bug

#

The exact reproduction steps right now are unclear

#

I would be interested in chopping down that TV.yml to see if it happens if you have say 2 networks

flat cliff
#

I will attempt a run with -dc to try and kill the offending collections

wintry harness
#

first run is done

rich widget
wintry harness
#

yup

#

I'm on the Beta plex FWIW

rich widget
#

you don't think the TPDB going down affects the way the config is set up do you?

#

this issue is shockingly very recent

wintry harness
#

No, I don't see that having any involvement

#

PMM will just say "I can't find that image"

#

run 2 complete

rich widget
#

seeing these collections with 1 item in them, I see you're trying it without the config.yml

flat cliff
#

None of your collections have 0 items

wintry harness
#

I have a small test library

flat cliff
#

Same with Chaz

rich widget
#

that's looking mighty finger pointy at the config.yml

#

TV.yml should be OK

flat cliff
#

Yeah... until you end up with collections with 0 items, I don't think the repro happens

wintry harness
#

I think that's part of the problem - you're not "meant" to have 0 item collections

rich widget
#

when you say "collections with 0 items" could you elaborate?

#

the only collection 0 items I have is this one and it's a "divider" or something as part of the config

flat cliff
#

Look at the square icons in my photos and yours... how many items in them?

wintry harness
#

I've run separator_award to force 0 items

#

ran it 3 times

#

no issues

#

I can't open the award separator because it has 0 items in it

#

but it doesn't cause any other issues

flat cliff
#

Try to navigate to other pages without hitting F5

wintry harness
#

no issues

#

I can open movies

#

go back to collections

rich widget
#

the Network Collections separator didn't seem to give me an issues when I was experiencing things

#

I was able to freely switch between Home and Movies though

flat cliff
#

Again... did you see my images and yours... the square icons have 0 items

wintry harness
#

so

#

odd behaviour

flat cliff
#

Btw, ram with -dc and collections were deleted

#

Rerunning now

rich widget
#

was that with or without the config file? just the TV.yml?

wintry harness
#

if I open the 0 items collection via the Plex Web client:

#

if I open it via my server URL:

flat cliff
rich widget
wintry harness
#

I don't think it's related but yeah

rich widget
wintry harness
#

I used my own config.yml

rich widget
flat cliff
#

That's after two runs.

#

Now that I deleted all collections and reran, I cannot repro

#

And those have items in them so I was able to delete in Plex web client

rich widget
#

without the duplicates might be a different behvaior

flat cliff
flat cliff
#

I have not seen the server crash

rich widget
flat cliff
#

My uptime is good on the container

rich widget
flat cliff
#

Ok. So this is not the same type of critical issue that I thought

#

I am on my third run

rich widget
flat cliff
#

I will them make my config look a little more like yours to try and repro

#

I did not have to restore any db

#

I simply deleted the collections and let pmm finish what it did and that's what you saw above in my second video

#

So after three runs, I cannot repro from a fresh -dc run

#

I will now add what you have in your config to mine and test again

rich widget
#

also

#

please try to open the collections to verify the shows are actually inside

#

had the Netflix one say it had 22 items but opening it was a blank box

#

tho that was again an instance where it had a duplicate made

flat cliff
#

I need to repro the issue again...

#

I'm running with similar configuration to yours

#
    - file: config/metadata/TV.yml
    - pmm: network
    - pmm: imdb
      template_variables:
        name_popular: Popular
        order_popular: 0
        summary_popular: ''
        use_popular: true
        use_top: false
        use_lowest: false
        visible_home_popular: true
        visible_library: true
        visible_shared_popular: true
flat cliff
#

I cannot repro

#

Notice how duplicates won't get created...

#

Gonna. Or try to repro with my full config and your tv.yml

#

Against my test library

rich widget
icy vortexBOT
#

The following was shared by @rich widget and was automatically redacted by Luma as it may have contained sensitive information.

If you feel this message should not have been redacted, resend it with !noredact in your message to avoid redaction.

#

The following was shared by @rich widget and was automatically redacted by Luma as it may have contained sensitive information.

rich widget
#

after Music and before Webhooks*

flat cliff
#

No. I already repro'd it once. Trying again.

#

With my config

flat cliff
#

still cant repro again

#

how many collections do you have in the tv shows?

flat cliff
#

I still cant repro it again

rich widget
#

20 managed by PMM

#

9 made by me

flat cliff
#

Can you offload those 9 or make them PMM managed so that you can perform a -dc on TV Shows and fix this issue for you?

rich widget
midnight basinBOT
#

Need some cool scripts? Check out chazlarson's repo at: https://github.com/chazlarson/Media-Scripts

See the repo for current offerings, which may vary from this list.

Plex scripts:
:one: user-emails.py - extract user emails from your shares
:two: reset-posters-tmdb.py - reset all artwork in a library to TMDB default
:three: reset-posters-plex.py - reset all artwork in a library to Plex default
:four: grab-all-posters.py - grab some or all of the artwork for a library from plex
:five: grab-all-status.py - grab watch status for all users all libraries from plex
:six: apply-all-status.py - apply watch status for all users all libraries to plex from the file emitted by the previous script
:seven: show-all-playlists.py - Show contents of all user playlists
:eight: delete-collections.py - delete most or all collections from one or more libraries
:nine: refresh-metadata.py - Refresh metadata individually on items in a library

Plex-Meta Manager scripts
:one: extract_collections.py - extract collections from a library
:two: pmm_trakt_auth.py - generate trakt auth block for PMM config.yml
:three: pmm_mal_auth.py - generate mal auth block for PMM config.yml

TMDB scripts
:one: tmdb-people.py - retrieve TMDB images for a list of people

It's only typing... :tm: chazlarson

flat cliff
#

He has lots of stuff that might help

rich widget
#

Ah shit, I’m bad with python. I’m not sure how to install the scripts

boreal arch
#

the readme gives a step by step.

boreal arch
#

modified my config to match yours [except for radarr and sonarr since they aren't being used, and I didn't add the two libraries that aren't being used]. Will see if that has any effect.

rich widget
#

clone repo
Install requirements with pip install -r requirements.txt [I'd suggest doing this in a virtual environment]
cd to desired directory
Copy .env.example to .env
Edit .env to suit

#

These are instructions for someone who fully understands how to use python

#

What does -dc do again?

boreal arch
#

it deletes all collections at the start of the run. ALL collections, not just PMM-created collections. Every last one.

#

What platform are you on?

rich widget
#

Unraid

boreal arch
#

Oh, that's right. I could give you instructions for any other platform but unraid makes simple things like "run a python script" way more painful. Can you run it on another computer?

rich widget
rich widget
#

Yes or no?

#

I really really don't want to delete my collections (i.e. lose all their custom posters) to fix an issue that only occurs with PMM, especially with TPDB being down indefinitely

boreal arch
#

It will generate something like this for each collection:

collections:
  ABC:
    sort_title: +++_ABC
    url_poster: ./config/TV Shows - 4K-artwork/ABC.png
    summary: A collection of ABC content
    collection_order: release
    plex_search:
      any:
        title:
          - Twin Peaks
          - Strange World
          - Designated Survivor
          - The Good Doctor
boreal arch
# rich widget Yes or no?

There is other information in the docs that you may find valuable which is why I'm pointing to it.

rich widget
#

I maybe could?

#

I access my server via my windows PC

boreal arch
#

on windows:
Install Python
Install git

Those two steps are covered in the PMM local walkthrough

then, using Powershell:

clone repo

cd ~
git clone https://github.com/chazlarson/Media-Scripts.git
cd Media-Scripts

Install requirements with pip install -r requirements.txt [I'd suggest doing this in a virtual environment]
Create the virtual environment:

python -m venv pmm-venv

Install requirements:

python -m pip install -r requirements.txt

cd to desired directory

cd Plex-Meta-Manager

Copy .env.example to .env

copy .env.example .env

Edit .env to suit

notepad .env

Refer to the readme for required settings.

For this script, all that should matter are:

PLEX_URL=https://plex.domain.tld             # URL for Plex; can be a domain or IP:PORT
PLEX_TOKEN=PLEX-TOKEN

Save the file, then

python extract_collections.py
rich widget
#

I gotta install python on windows right?

#

wait who was our Unraid expert? was it @flat cliff

flat cliff
#

install on windows as Chaz mentions

#

this is not an Unraid thing

rich widget
#

gotcha, installing Python and GIT now

flat cliff
#

and Chaz has scripts that will pull selected posters for ALL of your libraries so you have a copy of those.

#

i was never able to repro the issue again last night or this morning. I must have run pmm 40 times

boreal arch
#

First run with your config [or as close as I can come]:

flat cliff
#

yup... no dupes and no 0 item collections other than the separators

#

since my -dc run last night, i was unable to repro and get the same as you

#

which is why the recommendation is to export out his collections (non-PMM created at a minimum) and then do a -dc run

boreal arch
#

second run no change

rich widget
boreal arch
#

It should have created a bunch of new files and downloaded a bunch of images.

rich widget
#

not sure if that last part is right

#

ModuleNOtFoundError: No module named 'helpers'

midnight basinBOT
#

Have you installed all your python requirements?
Did you remember to do that with your python virtual environment if applicable?
If you followed our walkthough guides, then its within your pmm-venv.

Generally the following works after you activate your python venv:
python -m pip install -r requirements.txt

Alternatively, if you see this:
ModuleNotFoundError: No module named 'pkg_resources'

You will also likely need to perform the following command under the activated python venv:
python -m pip install setuptools

boreal arch
#

Oh, whoops.

#
copy ..\Plex\helpers.py .

then try it again.

#

Or

git pull
rich widget
#

ok it got further

boreal arch
#

The script is making a request to download the image based on information that Plex gave it; Plex is responding "Don't have one of those"

#

Try leaving the slash off the end of your Plex URL

flat cliff
#

give it some time.... 😉

#

once you have it... you will be pleased... 😉

rich widget
#

no I think it's stuck

#

something not found

boreal arch
#

That's another flavor of the same thing.

script: "Hey Plex, what's the URL to the image for this collection?"
Plex: "It's /whatever/whatever/1234"
script: "OK can I have /whatever/whatever/1234 please?"
Plex: "I don't have such a thing."

rich widget
#

not sure what to edit in the notepad here

boreal arch
#

There's nothing you can do to address it.

rich widget
boreal arch
#

What would be reasonable/expected in this case in your opinion?

Should the script just continue without an image?

rich widget
#

there has to be something

boreal arch
#

I don't understand what you mean by that.

rich widget
#

it's in the screenshot

boreal arch
#

That error is not saying that utils.py is not found.

#

It's saying that on line 440 of utils.py, the server returned a "not found" response to a request.

rich widget
#

why did it work for Movies but not TV Shows?

boreal arch
#

Does the relevant collection in Plex have a poster?

rich widget
#

that might be it

flat cliff
#

i think that script should continue CHaz

rich widget
#

IMDB Popular collection lost its poster when I disabled PMM

flat cliff
#

log the error and continue as there culd be others that are valid

boreal arch
#

Then that's the source of the error.

#

Should it export the YAML without the image? or skip the collection entirely?

flat cliff
#

btw, is grab_all_posters.py a better option here? I forget if you do collections in GAP.py

rich widget
#

we got 4% further!

boreal arch
rich widget
#

just gonna delete all these Network collections, I think them not having actual poster files is breaking the thing

boreal arch
#

That's exactly what's breaking it.

#

As a dumb analogy:
"Hey, mom, do you have a measuring cup?"
"yes, it's in the first cupboard"
"Can I have the measuring cup from the first cupboard?"
"There's no measuring cup in the first cupboard"

You can't ask any differently to get that measuring cup.

rich widget
#

That did it

boreal arch
#

The script doesn't deal with that currently.

rich widget
#

100% x2

flat cliff
#

i forgot that he was looking for yml defs

rich widget
#

alright so everything is done, what's the next move?

boreal arch
#

Have you taken a look to verify that what fell out is what you expect?

#

before you delete anything from plex?

rich widget
#

what fell out? you mean the collections that were causing issues?

#

yeah, deleting all the Network collections i.e. 99% of the PMM's TV collections fixed the extraction process

#

we're 100% 100%

boreal arch
#

I mean the yaml files and images that were produced by that script.

#

Do you have a library named "Movies 4K"? If not, that's what's happening there.

rich widget
#

ok let me delete that from the pad and try again

#

Ok it's all done with no errors

rich widget
boreal arch
rich widget
#

err, how do I find that

#

jk found it

rich widget
#

maybe one or two like this

boreal arch
#

Are those referenced in the relevante YAML?

rich widget
#

yea

boreal arch
#

where? Trying to sort out where these no-extension files are coming from.

boreal arch
#

Ah, I have to escape special characters.

rich widget
#

you mean I should delete all colons and run the extraction again?

boreal arch
#

I should deal with it in the script, but that would be one way.

rich widget
#

it worked for about 99% of everything

#

just one poster that isn't cooperating but I can live with that

#

Let's move past it

#

ok adding a fresh poster to that collection fixed it

#

we're good

#

How do I run the -dc command and finish out this fix attempt?

boreal arch
#

add -dc to the end of the command you're using to run PMM.

rich widget
#

python plex_meta_manager.py -r -dc look alright?

#

ok running

#

running again and again, no dupes so far! @boreal arch

#

how do I restore the extracted collections from earlier?

boreal arch
#

You'd add those generated file[s] to your config.

#

Copy the contents of config over to your PMM config dir, then add:

libraries:
  Movies:
    collection_files:
      - file: config/Movies-existing.yml
...

and run PMM.

rich widget
#

also is there a reason why the last half of those collections aren't alphabetical with the rest of them?

#

I didn't notice before but they seem to have their own organization label that's different

boreal arch
#

Last half of what collections?

rich widget
boreal arch
#

my screenshot?

rich widget
#

Apple TV+ was traditionally to the right after Adult Swim

boreal arch
#

The collections that the defaults create have a sort-title pattern that puts them in that order.
The ones below aren't using that same pattern, and so are sorting elsewhere.

boreal arch
rich widget
boreal arch
#

There you go. ABC is showing the PMM defaults pattern; if you want to insert your own into that you'll need to follwo that pattern.

boreal arch
# rich widget

can't offer anything based on that. What's in your config?

#

Can you provide the log?

rich widget
#

is this how you wanted me to add collection_files?

boreal arch
#

those three dots were supposed to indicate "and so on for the rest of the files the script created"

#

they don't go in your config.

rich widget
#

LOL whoops I didn't see I copied those over

boreal arch
#

If you haven't switched to collection_files then just put the file references under metadata_path

#

I can't edit it for you since you've provided a screenshot and not the log.

icy vortexBOT
#

The following was shared by @rich widget and was automatically redacted by Luma as it may have contained sensitive information.

If you feel this message should not have been redacted, resend it with !noredact in your message to avoid redaction.

#

The following was shared by @rich widget and was automatically redacted by Luma as it may have contained sensitive information.

boreal arch
#
libraries:
  Movies:
    metadata_path:
    - file: config/Movies.yml
    - file: config/Movies-existing.yml
    - pmm: imdb
      template_variables:
        item_radarr_tag_popular: popular
        name_popular: Popular
        order_popular: 0
        summary_popular: ''
        use_popular: true
        use_top: false
        use_lowest: false
        visible_home_popular: true
        visible_library: true
        visible_shared_popular: true
  TV Shows:
    metadata_path:
    - file: config/TV.yml
    - file: config/TV Shows-existing.yml
    - pmm: network
    - pmm: imdb
      template_variables:
        name_popular: Popular
        order_popular: 0
        summary_popular: ''
        use_popular: true
        use_top: false
        use_lowest: false
        visible_home_popular: true
        visible_library: true
        visible_shared_popular: true
rich widget
#

got it, made the modifications and running PMM now

rich widget
boreal arch
#

You'd set it in the collection definition or template.

#

details are in that article I linked to, with a bunch of examples.

rich widget
#

this was suggested yesterday too

boreal arch
#

That's got nothing to do with the sorting.

rich widget
#

You are correct

#

it's a separate suggestion

#

UPDATE: PMM is taking a very long time for each collection but getting an Unknown Error after each single collection

boreal arch
#

Oh, that appears to be a problem with the script, which obviously you are one of the first people to use.

#

Open those YAML files in an editor and change all url_poster to file_poster

rich widget
#

ok

boreal arch
#

Or git pull and run v0.0.5

rich widget
#

replaced url_poster with file_poster

boreal arch
#

That should address it

rich widget
#

ok running

#

Good News: the collections have returned!
Bad News: It can't find the poster image files

boreal arch
#

Ah, dang slashes

rich widget
boreal arch
#

I should rewrite that to use assets.

rich widget
boreal arch
#

find ./config\Movies-Artwork\ replace with config/Movies-Artwork/
The again for the TV one.

rich widget
#

in which file?

boreal arch
#

the two YAML files the script produced.

rich widget
#

got it

rich widget
#

FIXED: The config looks for the path Movies-Artwork when the default folder names spit out by the extractor are Movies-artwork. The uppercase/lowercase makes all the difference.

#

also for some reason, it searches Movie Collections all over again while running the TV Collections YAML

#

it seems like all the Movie collection data is copied into TV Shows-existing.yml too

boreal arch
#

Thanks, will address those.

rich widget
#

running the existing-movies all over again while running existing-shows makes PMM take twice as long

#

If I remove the -existing metadata path for Movies and TV shows to make PMM run faster, will it remove the Collections I brought back?

boreal arch
#

PMM does not remove anything unless told to specifically, so no.

rich widget
#

perfect

#

You did it

#

you helped fixed this entire case

#

I've run PMM multiple multiple times now and no dupes

#

Huge thank you to all the Mods who hopped into here and helped me with my issue

#

this is looking like one of the lengthiest posts in #1006644783743258635

rich widget
#

just the top of TV.yml?

#

the wiki is unavailable for the Network page

rich widget
boreal arch
#

It won't; that's the page describing the default network collections.

rich widget
#

trying to circle back to this

boreal arch
rich widget
icy vortexBOT
#

YAML checked and is NOT valid. Error message:

while scanning a tag
in "<unicode string>", line 9, column 17:
sort_title: !050_<<collection_name>>
^
expected ' ', but found '<'
in "<unicode string>", line 9, column 22:
sort_title: !050_<<collection_name>>
^

rich widget
#

and then like this?

boreal arch
#
templates:
  network:
    sort_title: "!050_<<collection_name>>"
    sync_mode: sync
    smart_filter:
      all:
        network: <<network_list>>

collections:
  HBO:
    template: { name: network, network_list: "HBO, HBO Family, HBO Max" }
  Cinemax:
    template: { name: network, network_list: "Cinemax" }
...
#

something like that

#

Seems like these would be covered by the default network collections, though.

rich widget
#

Also

#

So we know -dc seems to fix the problem, but we have no idea how the whole creating duplicate TV collection issue started?

icy vortexBOT
#

The following was shared by @rich widget and was automatically redacted by Luma as it may have contained sensitive information.

#

can't seem to figure out why Country collection isn't working for TV but I can get it working for Movies no problem

flat cliff
#

You will want to stop sharing your config only as the answers lie in the meta.lig. 😉

boreal arch
#

That config seems fine, so the reason for failure will be in the log.

rich widget
#

believe it or not, the answer was that for Movies you use the full name of the country, for TV Shows you use the two letter abbreviation

flat cliff
#

Which is in the wiki

#

😉

rich widget
#

shoutout to the wiki for explaining things well

#

except for how to order the Country before the Networks in TV Shows collections

#

I've been stabbing at it and it's not taking

flat cliff
#

What do you mean?

rich widget
#

IMDB = 020
Networks = 050
Country = 30

Renaming country to 030 in the config is not working so it's always listing after Networks

#

sort titles*

flat cliff
#

Logs showing that please

boreal arch
#

How are you trying to do that?

rich widget
#

is there a log file other than the config.yml?

flat cliff
#

!ligs

midnight basinBOT
#

1: Go to your config folder

2: Go into the logs folder

3: Look for meta.log (not meta.1.log etc)

4: Drag it in the Discord thread - the whole thing, DO NOT EDIT IT

5: Still confused? ¯\(ツ)

Log file too big? USE PASTEBIN or ZIP THE FILE

rich widget
#
    metadata_path:
    - file: config/TV.yml
    - pmm: network
      template_variables:
        collection_section: 050
    - pmm: imdb
      template_variables:
        collection_section: 020
        name_popular: Popular
        order_popular: 0
        summary_popular: ''
        use_popular: true
        use_top: false
        use_lowest: false
        visible_home_popular: true
        visible_library: true
        visible_shared_popular: true
    collection_files:
      - pmm: country
        template_variables:
          collection_section: 030
          use_other: false 
          use_separator: false 
          style: white 
          include:
            - cn
            - jp
            - kr
          sort_by: release.desc
icy vortexBOT
#

📝 If you want to review this again, drunkencolumbus:
:one: Right-click (or long press with phone) on the message that contains the log
:two: Select: Copy Message Link
:three: Use the command: /logscan <message_link> or !logscan <message_link> and paste the value copied from the previous step where you see <message_link> 📝

#
**User Info**

Author of Linked Message: Drunken
Person who Invoked the Command: bullmoose
File Name: meta.log

Table of Contents:
Page 01: User Info
Page 02: PMM Info
Page 03: PMM Summary Info
Page 04: PMM Config.yml YAML Validation
Page 05: Plex Configuration - Section 1
Page 06: Plex Configuration - Section 2
Page 07: Plex Configuration - Section 3
Page 08: Rec 01 - ❌ [ERROR]
Page 09: Rec 02 - ❌ METADATA ATTRIBUTE ERRORS
Page 10: Rec 03 - ❌ METADATA LOAD ERRORS
Page 11: Rec 04 - ⚠️ [WARNING]

boreal arch
#

Why do you have both metadata_path: and collection_files:? Pick one or the other.

icy vortexBOT
rich widget
#

if I remove them it breaks

flat cliff
#

They aren't

boreal arch
#

In that log, you don't have collection_section specfied in the movie library, and it's in correct in the TV library.

rich widget
#

(it did not work)

boreal arch
#

You have:

libraries:              # Library mappings must have a colon (:) placed after them
  Movies:
    metadata_path:
    - file: config/Movies.yml
    - pmm: imdb
      template_variables:
        item_radarr_tag_popular: popular
        name_popular: Popular
        order_popular: 0
        summary_popular: ''
        use_popular: true
        use_top: false
        use_lowest: false
        visible_home_popular: true
        visible_library: true
        visible_shared_popular: true
    collection_files:
      - pmm: country
        template_variables:
          use_other: false
          use_separator: false
          style: color
          include:
            - China
            - Japan
            - South Korea
          sort_by: release.desc
  TV Shows:
    metadata_path:
    - file: config/TV.yml
    - pmm: network
      template_variables:
        collection_section: 050
    - pmm: imdb
      template_variables:
        collection_section: 020
        name_popular: Popular
        order_popular: 0
        summary_popular: ''
        use_popular: true
        use_top: false
        use_lowest: false
        visible_home_popular: true
        visible_library: true
        visible_shared_popular: true
    collection_files:
      - pmm: country
        template_variables:
          collection_section: 030_ # Why the underscore
          use_other: false
          use_separator: false
          style: white
          include:
            - cn
            - jp
            - kr
          sort_by: release.desc
#

This should be:

libraries:              # Library mappings must have a colon (:) placed after them
  Movies:
    metadata_path:
    - file: config/Movies.yml
    - pmm: imdb
      template_variables:
        item_radarr_tag_popular: popular
        name_popular: Popular
        order_popular: 0
        summary_popular: ''
        use_popular: true
        use_top: false
        use_lowest: false
        visible_home_popular: true
        visible_library: true
        visible_shared_popular: true
    - pmm: country
      template_variables:
        use_other: false
        use_separator: false
        style: color
        include:
          - China
          - Japan
          - South Korea
        sort_by: release.desc
  TV Shows:
    metadata_path:
    - file: config/TV.yml
    - pmm: network
      template_variables:
        collection_section: 050
    - pmm: imdb
      template_variables:
        collection_section: 020
        name_popular: Popular
        order_popular: 0
        summary_popular: ''
        use_popular: true
        use_top: false
        use_lowest: false
        visible_home_popular: true
        visible_library: true
        visible_shared_popular: true
    - pmm: country
      template_variables:
        collection_section: 030 # note that it matches the one just above
        use_other: false
        use_separator: false
        style: white
        include:
          - cn
          - jp
          - kr
        sort_by: release.desc
rich widget
#

the underscore was another attempt to trick the system

boreal arch
#

try:

collection_section: "030"
#

Are the other two doing what you want?

rich widget
#

again, I did

#

wait, with the quotation marks too?

boreal arch
#

I am afraid my mind-reader is broken. I have no idea what you've tried if you do not tell us.

#

Note the remark about leading zeros.

rich widget
flat cliff
#

Yes... it's in the wiki...

rich widget
#

listen in my defense, it's not on this page

boreal arch
#

Can't cover every detail on every page.

rich widget
#

What page of the wiki is that on? I'll read it

boreal arch
#

The shared template variable page, which is linked from every default collection page.

rich widget
#

Thank you, I'm learning.

flat cliff
#

When using PMM defaults. You are best to go to the defaults pages. they are very thorough

#

This is a good jump point

boreal arch
#

on the path vs files thing.

Either:

libraries:
  Movies:
    metadata_path:  # pre 1.20
    - file: config/Movies.yml
    - pmm: imdb

or

libraries:
  Movies:
    collection_files:  # 1.20
    - file: config/Movies.yml
    - pmm: imdb

are fine, but pick one. the wiki examples will contain the latter.

DON'T DO THIS:

libraries:
  Movies:
    metadata_path:  # pre 1.20
    - file: config/Movies.yml
    collection_files:  # 1.20
    - pmm: imdb
rich widget
#

gooooot it thank you, I had no idea

#

A lot of configs shared use path instead of files so I didn't know they were mutually exclusive variables

flat cliff
#

This was just release with 1.20 which happened a couple of days ago

#

So there is a lot of catching up for everyone

rich widget
#

say I want to add the golden globes to my library, how do I exclude Best Directors and/or Best Picture Winners?

#

not by year, but overall Best Picture Winners + Best Director Winners

boreal arch
#

Generally speaking,

use_<<key>>: false

where hte <<key>> is from the table on the page.

flat cliff
#

Under the shared template variable is something called use_<<key>>

boreal arch
#

In this specific case:

libraries:
  Movies:
    collection_files:
      - pmm: golden
        template_variables:
          use_best_picture: false
          use_best_director: false
#

Nearly all the defaults use this same mechanism

flat cliff
rich widget
#

thanks again guys, I gotta brush up on the Variable Lists

boreal arch
#

Those are generally specific to the defaults; you can't use them with random collections of your own.

rich widget
#

@flat cliff Can you share elements of your config for connecting PMM to Radarr/Sonarr? That's one last element I haven't been able to get on my own

#

Root folder path and radarr_path, I'm surely putting in the wrong pathway but not sure of the right one

#

Also it'd be really cool to have the Golden Globes one temporarily show up every year for a month around this time, and have PMM talk to Radarr to have the winners automatically downloaded.

#

that's extra tho, not necessary

boreal arch
#

there's a picture in the wiki showing where the first one comes from.

boreal arch
rich widget
#

I think I have it setup for Holiday collections but yeah I'll get to that part later

boreal arch
#

plex_path and radarr_path are only used for add_existing, which you probably aren't doing so you can leave them blank.

rich widget
boreal arch
#

Yes.

#

Where does Plex see your media, what path?

rich widget
#

top screenshot is what Plex sees, the bottom screenshot is the container settings

boreal arch
#

In your case:

plex_path: /data/MOVIES # since Plex sees /data/MOVIES/Rebel Moon
radarr_path: /media     # since Radarr sees /media/Rebel Moon

BUT AGAIN if you are not adding things that are ALREADY IN PLEX to Radarr these are not used for anything.

#

This nonsense is why on my setups these are always the same path. Everybody looks at /mnt/unionfs/Media or whatever.

#

No translation between plex sees it here and radarr sees it there and on the host its this other place

rich widget
#

it's a riffraff for sure

#

I was able to change the root_folder_path to the aforementioned and it definitely helped. I don't get that error anymore

#

I guess no PMM run is without Errors, but it looks better

boreal arch
#

where are those 49, 359, etc coming from?

#

I bet you didn't change them in your network file.

rich widget
#

I don't think I have a Network.yml file actually lol

#

this is my TV.yml

boreal arch
#

This:

templates:
  network:
    optional:
      - network
    tmdb_network: <<network>>
    sort_title: +2_<<collection_name>>
    sync_mode: sync
    smart_label: episode_added.desc
collections:
  HBO:
    template: { name: network, network: "49, 2593, 3186, 3308" }
  Cinemax:
    template: { name: network, network: 359 }
...

needs to become:

templates:
  network:
    sort_title: "!050_<<collection_name>>"
    sync_mode: sync
    smart_filter:
      all:
        network: <<network_list>>

collections:
  HBO:
    template: { name: network, network_list: "HBO, HBO Family, HBO Max" }
  Cinemax:
    template: { name: network, network_list: "Cinemax" }
...

Note that the TMDB IDs have been changed to the names of the networks as Plex knows them.

As I showed above.

Plex has no idea what "network 49" is.

rich widget
#

this is what I've setup for Golden Globes, hopefully it checks out

boreal arch
#

this:

    tmdb_network: <<network>>

is "hey TMDB give me shows on the networks with these TMDB IDs"

this:

    smart_filter:
      all:
        network: <<network_list>>

is "Hey Plex give me everything where the network is set to one of these values"

boreal arch
rich widget
rich widget
#

or do I have to adjust the names

boreal arch
#

If you want to use this:

    smart_filter:
      all:
        network: <<network_list>>

You will have to convert all those numbers to names.

If you want to keep using the numbers, you have to go back to this:

templates:
  network:
    optional:
      - network
    tmdb_network: <<network>>
    sort_title: !050_<<collection_name>>
    sync_mode: sync
    smart_label: episode_added.desc
#

You can't mix and match or delete random stuff.

#

You may want to try the default network/streaming collections to see if they meet your needs with a single line in the config.

rich widget
rich widget
#

what would the TV.yml look like then? delete the bulk majority of stuff in the file?

boreal arch
#

there's an example on the page:

libraries:
  Movies:
    collection_files:
      - pmm: network
        template_variables:
          style: white
          append_exclude:
            - BBC 
          sort_by: title.asc
          collection_mode: show_items 
          sep_style: gray

This example gets rid of BBC

boreal arch
#

You would add a reference to the network and/or streaming defaults to your config.

rich widget
#

like so?

boreal arch
#

Wait, you have it there already:

libraries:
  TV Shows:
    metadata_path:
    - pmm: network   ## right here
      template_variables:
        collection_section: 050
    - pmm: imdb
      template_variables:
        collection_section: 020
        name_popular: Popular
        order_popular: 0
        summary_popular: ''
        use_popular: true
        use_top: false
        use_lowest: false
        visible_home_popular: true
        visible_library: true
        visible_shared_popular: true
    - pmm: country
      template_variables:
        collection_section: 030
        use_other: false
        use_separator: false
        style: white
        include:
          - cn
          - jp
          - kr
        sort_by: release.desc
#

Maybe what you want to add is streaming:

libraries:
  TV Shows:
    metadata_path:
    - pmm: network
      template_variables:
        collection_section: 050
    - pmm: imdb
      template_variables:
        collection_section: 020
        name_popular: Popular
        order_popular: 0
        summary_popular: ''
        use_popular: true
        use_top: false
        use_lowest: false
        visible_home_popular: true
        visible_library: true
        visible_shared_popular: true
    - pmm: country
      template_variables:
        collection_section: 030
        use_other: false
        use_separator: false
        style: white
        include:
          - cn
          - jp
          - kr
        sort_by: release.desc
    - pmm: streaming       ## here
      template_variables:
        sep_style: amethyst 
        visible_library_disney: true 
        visible_home_disney: true 
        visible_shared_disney: true 
        sonarr_add_missing_hulu: true 
        radarr_add_missing_amazon: true 
        sort_by: random 
#

with whatever template variables you want or need.

rich widget
#

I'll give streaming a chance, studio definitely wasn't what I was looking for (mostly)

#

adding schedule: range(01/01-02/31) to Golden Globes only added the 2020 Winners, so i'll have to try something different I guess

boreal arch
#

That has nothing to do with what ends up in the collection.

rich widget
#

idk why that popped up then

#
      template_variables:
        radarr_add_missing: true
        use_best_picture: false
        use_best_director: false
        visible_home_popular: true
        visible_library: true
        visible_shared_popular: true
        schedule: range(01/01-02/31)```
boreal arch
#

Would need to see the log.

rich widget
icy vortexBOT
#

📝 If you want to review this again, drunkencolumbus:
:one: Right-click (or long press with phone) on the message that contains the log
:two: Select: Copy Message Link
:three: Use the command: /logscan <message_link> or !logscan <message_link> and paste the value copied from the previous step where you see <message_link> 📝

boreal arch
#

The years are controlled by the data template variable.

#

And I think the default is the last 5 years.

rich widget
#

starting to regret adding Streaming as it checks for eveeeeery single show on the streaming services

boreal arch
#

There's no other way it could work.

rich widget
#

yeesh, alright. I'll let it continue to do its thing and see if the results look OK when its done

boreal arch
#

This log shows PMM trying to create 5 golden globes collections:

| Keys (Title):
|   - 2024
|   - 2023
|   - 2022
|   - 2021
|   - 2020

Touches 2024:

|============================== Adding to Golden Globe 2024 Collection ==============================|
|
| 1/3 | Golden Globe 2024 Collection | = | Oppenheimer (2023)
| 2/3 | Golden Globe 2024 Collection | = | Barbie (2023)
| 3/3 | Golden Globe 2024 Collection | = | Killers of the Flower Moon (2023)

You don't have enough of the movies from 2023-2021 to create a collection:

| Collection Minimum: 3 not met for Golden Globe 2023 Collection
| Collection Minimum: 3 not met for Golden Globe 2022 Collection
| Collection Minimum: 3 not met for Golden Globe 2021 Collection

then touches 2020:

|============================== Adding to Golden Globe 2020 Collection ==============================|
|
| 1/3 | Golden Globe 2020 Collection | = | 1917 (2020)
| 2/3 | Golden Globe 2020 Collection | = | Once Upon a Time in Hollywood (2019)
| 3/3 | Golden Globe 2020 Collection | = | Parasite (2019)
#

Seems to be doing what you have told it to do.

rich widget
#

ahhh that makes sense

#

so would I want it to look more like this?

#
      template_variables:
        radarr_add_missing: true
        use_best_picture: false
        use_best_director: false
        data: 
          starting: latest-1
          ending: latest
boreal arch
#

to what end?

#

yes, if what you want is for it to create collections for the last two years instead of the last 5

#

If you want just the latest year, make them both latest

#

You've also removed all the schedule stuff you had before. If you want that to happen, then yes.

rich widget
#
      template_variables:
        radarr_add_missing: true
        use_best_picture: false
        use_best_director: false
        data: 
          starting: latest
          ending: latest
        schedule: range(01/01-02/31)```
#

how's that?

#

yeah, really wishing there was a way to skip PMM from listing all Missing Shows from Library

boreal arch
# rich widget how's that?

shows only the latest GG winners, only visible for the first two months of the year, send missing stuff to radarr. Prior to January 10 or whatever, it will show the previous year's winners, I think.
If that's what you want, carry on.

I don't know if the imaginary end date will cause problems.

rich widget
#

agonizing to watch this list go on and on and on

boreal arch
#

You may also be interested in:

flat cliff
rich widget
#

Every time I try to run it with the new settings, the whole goddamn power goes out

#

Unrelated ofc, major rainstorms rn

#

UPS was a good investment tho

#

ok the new settings worked perfectly, PMM ran like a racecar this time around

#

but the Golden Globes schedule is seemingly not working

boreal arch
#

Maybe you need latest and latest-1.

rich widget
#

no...

#

not again...

#

dunno why a dupe showed up but it didn't cause any issues and I was able to delete it easily

#

also, there's not any way to have Streaming Services collections but with no overlap is there?

#

the overlapping media is pushing me back towards Networks

boreal arch
#

By "overlap" you mean things that are on two streaming services? No, because how would you choose which one included the thing?

rich widget
#

yeah makes sense, looks like I'll go back to Networks for now

rich widget
rich widget
#

Tautulli PMM collection doesn't seem to be working for my movies either

#
      template_variables:
        use_watched: false 
        list_days_popular: 7 
        list_size_popular: 10 
        visible_library_popular: true 
        visible_home_popular: true 
        visible_shared_popular: true ```
#

I have the URL and API key set up further down the config file too

icy vortexBOT
#

📝 If you want to review this again, drunkencolumbus:
:one: Right-click (or long press with phone) on the message that contains the log
:two: Select: Copy Message Link
:three: Use the command: /logscan <message_link> or !logscan <message_link> and paste the value copied from the previous step where you see <message_link> 📝

#
**User Info**

Author of Linked Message: Drunken
Person who Invoked the Command: Luma
File Name: meta.log

Table of Contents:
Page 01: User Info
Page 02: PMM Info
Page 03: PMM Summary Info
Page 04: PMM Config.yml YAML Validation
Page 05: Plex Configuration - Section 1
Page 06: Plex Configuration - Section 2
Page 07: Plex Configuration - Section 3
Page 08: Rec 01 - ❌ [ERROR]
Page 09: Rec 02 - ⚠️ [WARNING]

flat cliff
#

Without me opening up the meta.lig, please share why you believe there is a Tautulli issue?

#

The image does not seem to have any reference to Tautulli

#

Luma does not seem to mention something failing around apikey either...

rich widget
#
  Movies:
    collection_files:
    - file: config/Movies.yml
    - pmm: imdb
      template_variables:
        item_radarr_tag_popular: popular
        name_popular: Popular
        order_popular: 0
        summary_popular: ''
        use_popular: true
        use_top: false
        use_lowest: false
        visible_home_popular: true
        visible_library: true
        visible_shared_popular: true
    - pmm: golden
      template_variables:
        radarr_add_missing: true
        use_best_picture: false
        use_best_director: false
        data: 
          starting: latest-1
          ending: latest
        schedule: range(01/01-02/31)
        visible_home_popular: true
        visible_library: true
        visible_shared_popular: true
    - pmm: country
      template_variables:
        use_other: false
        use_separator: false
        style: white
        include:
          - China
          - Japan
          - South Korea
        sort_by: release.desc
    - pmm: tautulli
      template_variables:
        use_watched: false 
        list_days_popular: 7 
        list_size_popular: 10 
        visible_library_popular: true 
        visible_home_popular: true 
        visible_shared_popular: true 

  TV Shows:
    collection_files:
    - pmm: network
      template_variables:
        use_separator: false
        collection_section: "050"
        exclude:
          - The WB
          - CBS
          - ABC
          - FOX
    - pmm: imdb
      template_variables:
        collection_section: "020"
        name_popular: Popular
        order_popular: 0
        summary_popular: ''
        use_popular: true
        use_top: false
        use_lowest: false
        visible_home_popular: true
        visible_library: true
        visible_shared_popular: true
    - pmm: country
      template_variables:
        collection_section: "030" # note that it matches the one just above
        use_other: false
        use_separator: false
        style: white
        include:
          - cn
          - jp
          - kr
        sort_by: release.desc
    - pmm: tautulli
      template_variables:
        use_watched: false 
        list_days_popular: 7 
        list_size_popular: 10 
        visible_library_popular: true 
        visible_home_popular: true 
        visible_shared_popular: true  ```
#

not an error per say but trying to figure out why Tautulli + PMM aren't creating a Plex Popular collection

#

been somewhat hard to troubleshoot with the power going out constantly with these storms

#

actually, it works for TV Shows but not movies?

#

"Unknown Error" ThinkW

midnight basinBOT
#

We require more low-level logs from your PMM run in order to be able to assist your further; we call these "trace logs" and they give us a more in-depth look at what is happening behind-the-scenes when PMM is running.

in order to get trace logs, you need to run PMM again using the --trace environment variable.

Once you have completed your run with Trace enabled, you can find your meta.log file within the logs folder of your Plex Meta Manager config folder [typically where you would find your config.yml]

Drag-and-drop your meta.log file directly into the Discord support thread. If the file is larger than 50mb, we suggest zipping it or uploading it to another file-sharing website.

Please DO NOT manually extract, copy and paste text from your log files directly into Discord as the formatting can be difficult to read and can often redact parts of the log file that are important for full context.

rich widget
icy vortexBOT
#

📝 If you want to review this again, drunkencolumbus:
:one: Right-click (or long press with phone) on the message that contains the log
:two: Select: Copy Message Link
:three: Use the command: /logscan <message_link> or !logscan <message_link> and paste the value copied from the previous step where you see <message_link> 📝

#
**User Info**

Author of Linked Message: Drunken
Person who Invoked the Command: Drunken
File Name: meta.log

Table of Contents:
Page 01: User Info
Page 02: PMM Info
Page 03: PMM Summary Info
Page 04: PMM Config.yml YAML Validation
Page 05: Plex Configuration - Section 1
Page 06: Plex Configuration - Section 2
Page 07: Plex Configuration - Section 3
Page 08: Rec 01 - ❌ [ERROR]
Page 09: Rec 02 - ⚠️ [WARNING]

boreal arch
#

If you look at them in context both those errors have clear causes.

rich widget
#

if the errors in context have an obvious reason for why Plex Popular it's not working for Movies, please help me understand it.

boreal arch
#
Config Error: collection_files attribute is blank                                          

In your Music library, you have no collections files specified:

|   Music:                                                                                           |
|     collection_files:                                                                              |
|   # see the wiki for how to use local files, folders, URLs, or files from git                      |
| settings:                                                                                          |

The other:

|================================= Running Plex Popular Collection ==================================|
|                                                                                                    |
| Sync Mode: sync                                                                                    |
|                                                                                                    |
| Builder: tautulli_popular: {'list_type': 'popular', 'list_days': 7, 'list_size': 10, 'list_minimum': 0, 'list_buffer': 0} |
|                                                                                                    |
| Processing Tautulli Most Popular: 10 Movies                                                        |
| Tautulli CMD: get_home_stats                                                                       |
| Tautulli Params: {'time_range': 7, 'stats_count': 10, 'section_id': 1}                             |
| Traceback (most recent call last):                                                                 |
|   File "//plex_meta_manager.py", line 764, in run_collection                                       |
|     builder.filter_and_save_items(builder.gather_ids(method, value))                               |
|                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                |
|   File "/modules/builder.py", line 2069, in gather_ids                                             |
|     ids = self.library.Tautulli.get_rating_keys(value, self.playlist)                              |
|           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                              |
|   File "/modules/tautulli.py", line 54, in get_rating_keys                                         |
|     raise BadRequest                                                                               |
| plexapi.exceptions.BadRequest                                                                      |
|                                                                                                    |
| Unknown Error:                                                                                     |

Plex Popular isn't being created because Tautulli returned an error when asked for the top ten movies. I don't know offhand what might be causing that, but it's likely on the Tautulli side. Perhaps it doesn't have enough data?

rich widget
boreal arch
#

That was just a guess. PMM's making the request and Tautulli is saying GAH I DON'T LIKE THAT QUESTION

rich widget
#

RaccoonGun answer my questions Tautulli

#

if i leave it as pmm: tautulli with no additional settings it still doesn't grab the data

flat cliff
rich widget
rich widget
#

Inexplicably it is working now

#

Cheers gents

#

This is a looooong support thread so feel free to mark this case as closed

#

I really appreciate all the help everyone has given me with fixing the dupes (that we still don’t know why it happened) and for getting my PMM config off the ground.

#

I’m indebted to you all.

icy vortexBOT
#

Hello @rich widget, a user has suggested that this thread has been resolved and can be closed.

Please confirm that you are happy to close this thread by typing /close or by pressing the Close Post button which is pinned to this thread.