RatingPosterDB / rpdb-folders

Monitors Media Folders and Adds Images with Ratings (poster.jpg / background.jpg) from the RPDB API
GNU Lesser General Public License v2.1
23 stars 2 forks source link

Automatic badges and rpdb.json creation #32

Closed tscibilia closed 2 years ago

tscibilia commented 2 years ago

I just upgraded to tier 3 and I'm having inconsistent results with the automatic badges. I estimate it automatically created about 40% of the files. I'm pretty confident there are no permission issues as the posters are being downloaded to the folders without issue. When the folder scan is active, these are the typical logs I receive: Missing rpdb.json, continuing to probe video file. Poster for Batman Begins (2005) downloaded Items left in queue: 1761

I'm running rpdb in a docker container & the files are accessed on a network share via NFS mount in that VM. Plex runs on a separate VM & the files are accessed on a network share via CIFS mount. The plex user has read-only access but the docker user has read/write (but I doubt that part matters). All video files are mp4 format.

Let me know if you need more info or have other questions. Alternatively, I could try installing the rpdb plex plugin (instead of docker)

jaruba commented 2 years ago

The strange thing here is that 40% of ur library does work.. And there don't seem to be any errors in the logs.

Looking over the code I can see two cases where I haven't made the logic verbose enough. (logs are missing)

  1. if the logic is unable to find a relevant video file to probe in the folder (or maybe reading the files within the folder fails)
  2. if the rpdb.json file cannot be written inside the directory

Presuming I did not miss any other possible scenarios that are missing logs, and also presuming that there is write access to the folders, (as the poster is written) we should assume that for some reason the application believes that it cannot find a suitable video file within the folders.

A bit more info that would help debug this issue:

I do not recommend changing to the Plex plugin, it has less features and also less available badges, as it is limited by the Plex plugin environment and Plex's own probed data which is not as detailed as the one from the RPDB Folders app.

tscibilia commented 2 years ago

Ok all of that is not a problem, but I noticed something I assumed I knew earlier. It seems the video files that don't have the rpdb.json are actually .m4v format. I'm using a script that converts all videos to mp4 but I guess that all the older videos (before i started using that script) were of a different format.

Let me know if that helps before I go through documenting all the info you wanted. Also, the videos without the json file are in fact playable.

here's an mp4 mediainfo here's an m4v mediainfo

jaruba commented 2 years ago

@tscibilia that explains it! the logic is not looking for m4v videos, it can be easily fixed

tscibilia commented 2 years ago

So sorry, see what happens when you assume (I thought they were all the same file type). Thanks for your quick support!

jaruba commented 2 years ago

@tscibilia The v0.1.8 version was just released that should include a solution for your issue. Feel free to re-open this issue if the problem still occurs.