mrzhenya / plex-plugins

A plugin for the Plex Media Server that helps to tag Movie and TV (Show) media assets using information provided via local .info files.
Apache License 2.0
5 stars 0 forks source link

Media assets not displayed #5

Closed beeradmoore closed 1 month ago

beeradmoore commented 2 months ago

While writing this issue out and fetching stuff from the logs it does not appear that this library could be to blame. It could be Plex crashing / choosing not to use this library to pull in local data.

More than happy to close this issue if it is unrelated to the library and is a Plex issue itself.

=========

Hey, Long story short, Rooster Teeth shutdown earlier this year. Before they shutdown I downloaded all 40TB of videos + thumbnails + metadata. I have second Plex docker instance on my NAS dedicated only to this Rooster Teeth content.

I built tools to organise files, create the correctly named .info and .jpg files for shows and episode covers. I imported one show to test and it worked great.

Screenshot 2024-08-13 at 9 41 59 AM

When this worked I went on to add the rest of the Rooster Teeth "Channel" is a new TV Shows library. So this particular server has 16 TV Shows libraries.

Screenshot 2024-08-13 at 9 43 49 AM

Everyone (including the first that worked) has:

The three disabled things here are because I don't need that for 40TB worth of videos I am supplying info for. However on the main readme it says to leave the settings to default, which would imply keeping these enabled. I don't know if this library will be skipped if these are disabled, is it?

I left it overnight and it finished scanning, but when I look in the morning it doesn't appear that any of the additional content I added after seemed to work.

I manually re-scanned a library this morning to see if it produced any errors.

com.plexapp.agents.localmedia.log.zip

Looking through it I can see some errors, although they don't appear to be with this library, but they also may be 100% the reason why it isn't working.

(I have no idea what this content is, please don't judge me 😅)

2024-08-13 09:12:55,514 (151b74a65b38) : INFO (localmedia:221) - Local asset added: /data/best-friends-today/best-friends-tv/Season 01/S01E03 - Building MR. Krab's Room in Sims 5.jpg (836948f23c13118372e417a9473814e6) 2024-08-13 09:12:55,515 (151b74a65b38) : INFO (localmedia:225) - Found 1 valid things for pattern S01E03\ -\ Building\ MR.\ Krab\'s\ Room\ in\ Sims\ 5(-|-thumb)?[0-9]? (ext: ['jpg', 'png', 'jpeg', 'tbn'])

I think localmedia is this library? If it is it look like it is finding the content I placed but it isn't pulling in any .info data. (EDIT: I think I saw localmedia and thought it was this, but this is actually com.plexapp.agents.localmetadata)

This is the expected episode image, S01E03 - Building MR  Krab's Room in Sims 5

This is the actual episode image

Screenshot 2024-08-13 at 9 53 14 AM

Also from here I can see it didn't pull in any of the data from the .info file.

Screenshot 2024-08-13 at 9 53 09 AM

This is what that actual info file looks like

S01E03 - Building MR. Krab's Room in Sims 5.info

[title]
Building MR. Krab’s Room in Sims 5???
[summary]
Watch a new episode of BFTV every Friday!

Close your eyes and think about if spongebob was in the SIMS 5 (inclusion exmpansion packs) and then open them and close them again congrlatulations you just blinked twice now think about what me and you have together. Do you love me? WAtch us have fun and play the sims together because WE ARE BESTEST OF FRIENDS TOGETHER. Donald trump was nominated by Homer JAmes Simpson for the spongebob sims decoration challenge LGBTQ+ mr krabs.

Starring:
@CarolineKonstnar 
@Wahony
Sammie

        Follow us on:
Youtube - https://www.youtube.com/@todayfriendsbest/featured
IG - https://www.instagram.com/todayfriendsbest
TT - https://www.tiktok.com/@todayfriendsbest
Podcast - https://link.chtbl.com/hypotheticalnonsense
Rooster Teeth - https://roosterteeth.com/channel/best-friends-today
[originally_available_at]
2023-09-08

Any idea what is wrong here?

beeradmoore commented 1 month ago

After all this time of trying different Plex docker images, different host OS's, playing with file permissions, etc, I found the problem.

I was using Agent as Plex Personal Media not Personal Media Shows 🤦🏻‍♂️

Started the server from scratch and begun the long import once again and so far it is looking good.

Screenshot 2024-08-30 at 6 08 51 PM

Screenshot 2024-08-30 at 6 12 02 PM

mrzhenya commented 1 month ago

Thank you for following up on this.

Btw, the log messages from 'localmedia' are from the core Plex's agent that works with local media files.

beeradmoore commented 1 month ago

Through my digging I found that out, seems many things almost named something else got me at multiple points 😅

I'm still unsure why that was not loading thumbnails though, as I thought that was a Plex inbuilt system and independent of this plugin. I can't confirm if it was this action or if I did something else around the same time, but I figured out I need to fix user and directory permissions of the plugin after I copied it in.

Plex Docker image was meant to take ownership of its entire config folder but at some point I noticed the plugin was still as my root user not the user docker is using internally.

mrzhenya commented 1 month ago

Yep, the code needs some lovin' :D

There used to be developer documentation on how to develop Plugins, but I think Plex changed its mind on open source development model for this part of the app functionality, and now it's just reverse engineering...

Good luck.