jkirkcaldy / plex-utills

Manage your Plex library automatically
MIT License
319 stars 24 forks source link

Script Stops #93

Closed adznon closed 1 year ago

adznon commented 2 years ago

Hello,

Firstly This is a great application, may thanks for creating it, Have been manually adding the 4K posters for a long time now.

I am wondering if you can help me.

Have been able to install the app on UNRaid using the community plugin.

But, when I try to run it, it runs for the first 30 ish and then stops.

There is no error message in either the script log or the application log.

Can you advise anything I can do to rectify ?

Thanks Adam

jkirkcaldy commented 2 years ago

How about the docker log? Click on the icon of the docker container and click logs. You may need to manually set the script going and wait for it to stop.

The errors often get outputted there. (I'm working on rectifying this)

adznon commented 2 years ago

Thanks for the reply.

Nothing in there either, its weird it just seems to hang.

Have included the log from the start if this helps.

image

image

jkirkcaldy commented 2 years ago

Does it always hang on 3:10 to Yuma?

adznon commented 2 years ago

No that was the first page, didnt sent you all the pages (have a big collection) and it currently stops after "After We Fell"

Thought about that before and removed the ones it used to stop on but then it just seem to do one more, its almost like it times out after doing a certain amount.

jkirkcaldy commented 2 years ago

And what appears in the docker logs once it stops? nothing?

omahajon commented 2 years ago

I'm getting this same issue. Mine is stopping at "The Blind Side". No error message in unraid logs, it just doesn't continue. I got about 15 files in and it seems to keep happening on this movie each time.

Capture

I can help provide any information necessary to get this resolved. Let me know if you need my discord or anything.

jkirkcaldy commented 2 years ago

On your docker host, can you run docker exec plex-utills /bin/bash -c "python3 dv_test.py <film library> '<film title>'

Swapping out and with your library and the film it stops on.

Alternatively, I have rewritten how the code works on the dev container so you could pull that and test to see if that works

omahajon commented 2 years ago

Sorry - how do I pull the dev container? I'm assuming I just need to adjust the repo? (Currently: jkirkcaldy/plex-utills) Running the script gives me the following: docker exec plex-utills /bin/bash -c "python3 dv_test.py <Movies> '<The Blind Side>'" /bin/bash: line 1: Movies: No such file or directory

EDIT: Figured it out, added ":dev" to repo. Running script now. Will edit with results.

EDIT 2: It was running smoothly, much less text in the logs - which is nice, and I got past The Blind Side and then it stopped immediately after once it reached Bohemian Rhapsody. No error message.

Capture
omahajon commented 2 years ago

Sorry for the spam of information. So after changing to the dev container and getting stuck on Bohemian Rhapsody I then changed it to only add 4k banners, no HDR, no Dolby Atmos/DTS:X, and it finished successfully!

EDIT: I have gone through trial and error. "Use the new HDR Banners" set to enable along with adding 4k banners shows the log go through all movies but doesn't add any HDR banners past Bohemian Rhapsody but it will indicate in the logs it ran successfully. Enabling "Enable Dolby Atmos and DTS:X labels on the posters" causes it to get stuck again, nothing past what is shown below - i'd imagine this is where the issue lies.

jkirkcaldy commented 2 years ago

can you run docker exec plex-utills /bin/bash -c "python3 dv_test.py Movies 'Bohemian Rhapsody'

and see what it says?

Also, you can change the log level to debug in the /admin_config page, which gives greater detail as to what it's doing which may help identify why it's not working.

omahajon commented 2 years ago

Ran the script you mentioned above, waited about 30 minutes and it only displayed the screen capture below.

Capture

Changed log to debug level.

EDIT: Updated to latest dev container (22.01.12), ran 4k banner script with HDR + Dolby Atmos and DTS:X, same thing.

Capture
jkirkcaldy commented 2 years ago

It could be a permissions issue.

If you run:

Can you check the permissions of that film?

omahajon commented 2 years ago

It could be a permissions issue.

If you run:

Can you check the permissions of that film?

Ran ls -al drwxrwxrwx 1 nobody users 10 Jan 12 13:41 ./ drwxrwxrwx 1 nobody users 24576 Jan 11 18:51 ../ -rw-rw-r-- 1 nobody users 133734 Jan 8 12:50 Bohemian\ Rhapsody\ (2018)\ [imdb-tt1727824][Bluray-2160p][HDR][10bit][x265][TrueHD\ Atmos\ 7.1]-SWTYBLZ.eng.srt -rw-rw-r-- 1 nobody users 22523404228 Jan 8 12:59 Bohemian\ Rhapsody\ (2018)\ [imdb-tt1727824][Bluray-2160p][HDR][10bit][x265][TrueHD\ Atmos\ 7.1]-SWTYBLZ.mkv -rw-r--r-- 1 root root 1926664 Jan 12 13:41 poster_bak.png

I'm showing other files such as "The Blind Side" and "Blazing Saddles" with the same permissions

omahajon commented 2 years ago

I ended up changing all file permissions within my /data/media/movies & /data/media/tv to be 755 to prevent permission issues - still getting stuck only when either HDR banners/Dolby Atmos/DTS:X are enabled, enabling ONLY 4k banners runs through both movies and shows. Oddly enough I am getting stuck on a 1080p movie now that has neither HDR or 4k. image

jkirkcaldy commented 1 year ago

I think this should be solved now, please re-open if not.