GithubHelp home page GithubHelp logo

ratingposterdb / rpdb-folders Goto Github PK

View Code? Open in Web Editor NEW
23.0 23.0 2.0 436 KB

Monitors Media Folders and Adds Images with Ratings (poster.jpg / background.jpg) from the RPDB API

License: GNU Lesser General Public License v2.1

JavaScript 32.79% HTML 67.21%
cover emby imdb jellyfin kodi metacritic plex poster rottentomatoes

rpdb-folders's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

rpdb-folders's Issues

[Feature Request] Video file: .ts support

[Feature Request] Video file: .ts support

Is your feature request related to a problem? Please describe.
Whenever the automatic badge probing looks for videofiles, it "only" checks for the files listed here

This does not include the weird .ts format, which is sometimes used. Luckily quite rarily.

Describe the solution you'd like
To add support for the .ts file format

Additional context
Here's a mediainfo output from a sample .ts file:
https://0bin.net/paste/qZUaPwxE#NCrvSk-WttPA+2BT62c7biNW504wp+9QzlPFobZD8MK

[Feature Request] BaseUrl option (for reverse proxy/proxypass)

[Feature Request] BaseUrl option (for reverse proxy/proxypass)

Is your feature request related to a problem? Please describe.
Right now the "only" way to access the RPDB-folders app is to use the port specified, "tied" with the host-url (127.0.0.1 or public IP). Without a base-url option, it's not possible to use reverse proxying for getting covered by the server's HTTPS certificate.

Describe the solution you'd like
An option for setting a baseurl, so it's possible to do a reverse proxy / proxypass.

Additional context
It could look like this, using nginx, with baseurl set to /rpdb (default port 8750):

location /rpdb {
    proxy_pass http://127.0.0.1:8750;
    proxy_set_header Host $host;
    proxy_set_header X-Forwarded-Host $server_name;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_read_timeout 90;
    proxy_set_header X-Forwarded-Proto $scheme;
    set $xforwardedssl "off";
    if ($scheme = https) {
            set $xforwardedssl "on";
    }
    proxy_set_header X-Forwarded-Ssl $xforwardedssl;
    proxy_redirect ~^(http(?:s)?://)([^:/]+)(?::\d+)?(/.*)?$ $1$2:$server_port$3;
}

Check if Image Changed

Hi,

Would it be possible to add a header to indicate the last updated timestamp of an image?

If yes, could it be a HEAD request so it's cheaper for both the user (perhaps treated as 1/2 a request ๐Ÿ˜„ ) and you (no need to download or generate the image if it's not changed)?

Thanks.

Feature Request: Web Hook Triggers for poster generation

No issues. LOVE your app, thanks for making it and constantly improving it. Very very cool. Also sorry if this is the wrong place for a feature request.

One feature request which I think would be of value for those that have Media on Network attached storage and use the sideload docker app - webhook triggers to initiate targetted scans of folders. In Sonarr/Radarr, the connect feature has a webhook output. So as new media is downloaded it can send a trigger to rpdb to prob that one specific folder.

If this is considered for implementation, I would respectfully and humbly ask that the trigger have a configurable delay. e.g. when webhook trigger received, wait 10m before acting. The reason being many of us use a staging area for downloads with things such as mergerfs, so when sonarr/radarr think something is downloaded, it may be another 5-15m before it actually is copied to the SAN if that makes sense.

Appreciate your consideration and thanks again for this awesome tool!

IMAX Badge

Hi,

Could you create a beautiful IMAX badge that can be used for the recently released IMAX cuts of the Marvel movies? I know we can use custom labels but they don't look as good.

Thanks.

Allow Inserting Media Folder Paths Manually

I am trying to use your Tool on a Seedbox with 34 drives.
Nothing is happening if i click one of the Mountpoints...because i dont have permission for /home/hd27/ i only have permissions for /home/hd27/myusername...

Best regards

r3s
image

Typo on TrueHD Surround

I was going through the badges manually and noticed the TrueHD Surround was actually spelled Sorround in both the 5.1 and 7.1 the badges.
Screenshot 2021-08-11 100839
Screenshot 2021-08-11 100816

Feature Request: Skip not found movies for 30/60/90 days

edit title should have been "Skip not found movies/TV shows for 30/60/90 days* endEdit
Me again. :) Feature request for your consideration - upon full scan, if a poster can't be matched/found, log it, and allow a configurable "skip on full scans for 30/60/90 days" option. The reason being, I have a very very large library. And on each full scan, I burn through several thousand API hits for those same titles each time, so would be nice to have it skip those, and guessing would also be beneficial for back end load efficiency on your end as well.

Thanks for your consideration.

[Issue/Bug] Probed media files don't get properly deleted/closed (held by the system)

[Issue/Bug] Probed media files don't get properly deleted/closed (held by the system)

Describe the bug
This is a weird one (and a long issue report), and I've actually had it for quite a while.
This could easily not be the fault of rpdb, but I'll try and explain in detail.
To preface the issue, I think I need to describe the way my setup is working. It's basically made from the thoughts of THIS GitHub.

My setup is using mergerfs to combine two folders:

  1. /home/appbox/private/local
  2. /home/appbox/m/gcd/plex
    For the sake of easiness, I'll refer to the local folder as /local and the mounted cloud drive as /m/gcd/plex

The first folder is for local storage, and the 2nd is cloud storage (mounted using rclone).
I'm using this as the mergerfs fusing:
/usr/bin/mergerfs /home/appbox/private/local:/home/appbox/m/gcd/plex /home/appbox/gmedia -o rw,use_ino,allow_other,func.getattr=newest,category.action=all,category.create=ff,cache.files=auto-full,dropcacheonclose=true

They're combined to a third combined mergerfs folder:
/home/appbox/gmedia

Whenever I download anything, I point it towards the /gmedia folder. The way it's set up, it always writes to the /local folder first.
Both Radarr, Sonarr, Bazarr and so on is setup to point towards the /gmedia folder. So whenever something gets imported or downloaded, the files will actually get written to the /home/appbox/private/local as per the mergerfs settings.

This is a nice way to set it up, since I also use a daily upload script, that uploads files to the cloud drive.
The daily upload script is using the rclone move command, which basically removes the file from the /local folder, whenever the upload of the file is completed.

Which means it goes from /local to /m/gcd/plex - but to the /gmedia folder, it's all the same basically, since the two folders are combined "as one".

RPDB is also configured to use the /gmedia folder, which works awesomely.
It reads new files added by Radarr and Sonarr without error and is also able to probe new files (which are technically saved to the /local folder), but it's also able to probe the files already present on the cloud drive (technically /m/gcd/plex)
So basically, it works by mergerfs "tricking" the system to believe all files are present at the same time, whether or not they're actually uploaded yet.

RPDB is setup to probe the 4K files and automatically add badges. That works perfectly and without fail. Can't repeat too many times how much I appreciate that feature ๐Ÿ˜„

Anyways!
The issue is related to said probing of the 4K files.
Whenever the beforementioned daily upload script ends, and all the files have been removed by rclone, there's a lot of leftover "ghost files" - sorry for the lack of a better term.
The "ghost files" are some form of hardlinks/softlinks (?) that haven't truly been removed from the disk. They still take up the space, until you restart the rpdb-folders app.

If you use the command sudo lsof +L1 (manpage link), that shows open files that have been unlinked, you can see a list of the files probed by the rpdb-folders app.
The output looks like this, after a completed upload by the mentioned upload script / rclone move command:

COMMAND       PID     USER   FD   TYPE DEVICE    SIZE/OFF NLINK      NODE NAME
php-fpm7.     820     root    3u   REG    9,2           0     0  52166658 /tmp/.ZendSem.sQkIr4 (deleted)
unattende     907     root    3w   REG    9,2         452     0 210633852 /var/log/unattended-upgrades/unattended-upgrades-shutdown.log.1 (deleted)
mergerfs  3352623     root    6r   REG    9,2 40234101828     0 126222361 /home/appbox/private/local/4KMovies/X-Men - First Class (2011) [tmdb-49538]/X-Men.First.Class.2011.2160p.UHD.BluRay.REMUX.DTS-HD.MA-5.1.HDR.HEVC-RIPPEDBYMYSELF.mkv (deleted)
mergerfs  3352623     root   11r   REG    9,2 51855154785     0 125960456 /home/appbox/private/local/4KMovies/Mulan (1998) [tmdb-10674]/Mulan.1998.2160p.UHD.BluRay.REMUX.TrueHD.Atmos-7.1.HDR.HEVC-RIPPEDBYMYSELF.mkv (deleted)
mergerfs  3352623     root   12r   REG    9,2 54149344186     0 126222490 /home/appbox/private/local/4KMovies/G.I. Joe - The Rise of Cobra (2009) [tmdb-14869]/G.I.Joe.The.Rise.of.Cobra.2009.DV.2160p.UHD.BluRay.REMUX.DTS-HD.MA-5.1.HDR.HEVC-RIPPEDBYMYSELF.mkv (deleted)
mergerfs  3352623     root   18r   REG    9,2 42273126640     0 126222439 /home/appbox/private/local/4KMovies/Resident Evil (2002) [tmdb-1576]/Resident.Evil.2002.2160p.UHD.BluRay.REMUX.TrueHD.Atmos-7.1.HDR.HEVC-RIPPEDBYMYSELF.mkv (deleted)
mergerfs  3352623     root   23r   REG    9,2 49911337924     0 125832098 /home/appbox/private/local/4KMovies/Early Man (2018) [tmdb-387592]/Early.Man.2018.DV.2160p.UHD.BluRay.REMUX.TrueHD.Atmos-7.1.HDR.HEVC-RIPPEDBYMYSELF.mkv (deleted)
mergerfs  3352623     root   30r   REG    9,2 62268057718     0 125960196 /home/appbox/private/local/4KMovies/Harry Potter and the Half-Blood Prince (2009) [tmdb-767]/Harry.Potter.and.the.Half-Blood.Prince.2009.PROPER.2160p.UHD.BluRay.REMUX.DTS-X-7.1.HDR.HEVC-RIPPEDBYMYSELF.mkv (deleted)
mergerfs  3352623     root   40r   REG    9,2 60005580933     0 133695273 /home/appbox/private/local/4KMovies/Daughters of Darkness (1971) [tmdb-46175]/Daughters.of.Darkness.1971.2160p.UHD.BluRay.REMUX.TrueHD.Atmos-7.1.HDR.HEVC-RIPPEDBYMYSELF.mkv (deleted)
mergerfs  3352623     root  103r   REG    9,2 82588691949     0 126222609 /home/appbox/private/local/4KMovies/Saving Private Ryan (1998) [tmdb-857]/Saving.Private.Ryan.1998.DV.2160p.UHD.BluRay.REMUX.TrueHD.Atmos-7.1.HDR.h265-RIPPEDBYMYSELF.mkv (deleted)
mergerfs  3352623     root  116r   REG    9,2 41285461081     0 126224699 /home/appbox/private/local/4KMovies/Resident Evil - Apocalypse (2004) [tmdb-1577]/Resident.Evil.Apocalypse.2004.EXTENDED.2160p.UHD.BluRay.REMUX.TrueHD.Atmos-7.1.HDR.HEVC-RIPPEDBYMYSELF.mkv (deleted)
mergerfs  3352623     root  127r   REG    9,2 70846905011     0 126354645 /home/appbox/private/local/4KMovies/V for Vendetta (2006) [tmdb-752]/V.for.Vendetta.2006.2160p.UHD.BluRay.REMUX.TrueHD.Atmos-7.1.HDR.HEVC-RIPPEDBYMYSELF.mkv (deleted)
mergerfs  3352623     root  172r   REG    9,2 39326778766     0 133694073 /home/appbox/private/local/4KMovies/Resident Evil - Retribution (2012) [tmdb-71679]/Resident.Evil.Retribution.2012.2160p.UHD.BluRay.REMUX.TrueHD.Atmos-7.1.HDR.HEVC-RIPPEDBYMYSELF.mkv (deleted)
mergerfs  3352623     root  176r   REG    9,2 44119791007     0 126224841 /home/appbox/private/local/4KMovies/Resident Evil - Extinction (2007) [tmdb-7737]/Resident.Evil.Extinction.2007.2160p.UHD.BluRay.REMUX.TrueHD.Atmos-7.1.HDR.HEVC-RIPPEDBYMYSELF.mkv (deleted)
mergerfs  3352623     root  179r   REG    9,2 72007282481     0 126225120 /home/appbox/private/local/4KMovies/The Croods (2013) [tmdb-49519]/The.Croods.2013.2160p.UHD.BluRay.REMUX.DTS-X-7.1.HDR.HEVC-RIPPEDBYMYSELF.mkv (deleted)

The only way remove the open, yet unlinked, files is to restart the rpdb-folders app.
I solved this by just restarting the rpdb-folders app a minute or two before the daily upload script starts, which works wonderfully (lol), but to be fair, is a shoddy solution.

To Reproduce

  1. Install rclone
  2. Config a Google Cloud Drive based mount, using rclone config. Let's call it cloudDrive
  3. Setup two folders, using mergerfs - using said settings:
    /usr/bin/mergerfs /localDriveFolder:/cloudDriveMount /gmedia -o rw,use_ino,allow_other,func.getattr=newest,category.action=all,category.create=ff,cache.files=auto-full,dropcacheonclose=true
  4. Get some video files, and put them into the /localDriveFolder
  5. Setup rpdb-folders to probe video files from the combined /gmedia folder
  6. Let it probe the files, technically being located in the /localDriveFolder
  7. Use rclone move /localDriveFolder cloudDrive: -vv to move/upload the files from the local folder, to the cloudDrive that we configured in step 2
  8. Wait for the upload to complete
  9. Use sudo lsof +L1 and see that the files are still considered "opened" by the system, yet unlinked.
  10. Be sad and then restart the rpdb-folders app
  11. Be happy that the files are now closed properly, but yet still sad, since it's a shoddy solution

Extra notes
I haven't actually tested whether or not this happens with or without using mergerfs. It might also NOT properly close the probed files, when just using a normal FS.. Just haven't tested that.
No idea whether or not this issue is related: buzz/mediainfo.js#89

Expected behavior
The files getting properly closed after the probing is done.

Operating System
Ubuntu 21.10

RPDB Version
v0.1.8

Badges on Backgrounds

User suggestion for a new feature, this might take some time as backgrounds did not require any editing until now.

[Feature Request] Option to delay Plex Metadata Refresh

[Feature Request] Option to delay Plex Metadata Refresh
When I'm done with these GH issues, they'll have turned into a long novel. Sorry for the inconvenience.
But hopefully all the explanations will make a better case, for why this feature would be nice to have. Atleast in my weird case/setup.

Is your feature request related to a problem? Please describe.
As of now, there's no option to delay the Plex metadata refresh.
In my case, this is a problem because if RPDB is installed on a different server than the one running Plex Media Server (PMS), the metadata refresh will have no effect because it will refresh the metadata when the poster file has not been updated.

My Setup pt1: Server Setup
I have to dedicated servers, both running Linux/Ubuntu.
Here's a short overview of what applications is running on the two servers:

Server 1 (SRV1): Download Server
- Bazarr
- Bazarr4K
- Mergerfs (fused cloud & local folders)
- NZBGet
- Nginx / Web server
- Prowlarr
- RPDB
- Radarr
- Radarr4K
- Rclone Mount (cloud storage)
- Sonarr
- Sonarr4K
- Tautulli
- qBittorrent

Server 2 (SRV2): PMS Server
- Doplarr
- Overseerr
- Plex Media Server
- Rclone Mount (cloud storage)

**My Setup pt2: mergerfs & rclone **
On the SRV1 I use mergerfs and rclone's mount to get the local disks and cloud storage to work together in a very smooth way.
The SRV2 doesn't use the mergerfs mount, ONLY the rclone mount for Plex to access the cloud storage drive.

Mergerfs primary function is to merge the two drives (the local drive and the mounted cloud storage drive) into a folder I called gmedia. The mergerfs mounting command looks like this:

/usr/bin/mergerfs /home/appbox/private/local:/home/appbox/m/gcd/plex /home/appbox/gmedia -o rw,use_ino,allow_other,func.getattr=newest,category.action=all,category.create=ff,cache.files=auto-
full,dropcacheonclose=true,cache.symlinks=true,cache.readdir=true

The folders fused are:
/home/appbox/private/local is the local storage disk
/home/appbox/m/gcd/plex is the cloud storage mount

into /home/appbox/gmedia. So the /gmedia folder will contain:

/gmedia
   /home/appbox/private/local/ [local storage folders]
   /home/appbox/m/gcd/plex/    [cloud storage folders]

But obviously fused together.
So for the system and applications reading the /gmedia folder, it'll look as if both all the newly/daily downloaded files, and the files already present in the cloud storage mount, is all there in the same /gmedia folder.

The mergerfs command variables are setup like so:

  • use_ino is for hard linking with Radarr/Sonarr.
  • cache.files=auto-full is a setting for using memory for caching.
  • category.action=all, category.create=ff says to always create directories / files on the first listed mount point and for my configuration that is the local storage: /home/appbox/private/local

My Setup pt3: How it works with RPDB
So on SRV1, everything is pointed towards the fused folder, which is /gmedia
Everything that gets saved to /gmedia actually gets saved to the local drive: /home/appbox/private/local, because of the mergerfs variables explained above.

RPDB is also setup to use the /gmedia folder. It'll do a daily scan with this simple script, starting at 11:00AM:

#!/bin/bash

# Exit if running
if [[ $(pidof -x "$(basename "$0")" -o %PPID) ]]; then
echo "Already running, exiting..."; exit 1; fi

/usr/bin/bash -c "/opt/rpdb/rpdb-folders --remote="full-scan"" >> /home/appbox/logs/rpdb/rpdb.log 2>&1

This will then scan the /gmedia folder. Which means it'll both scan all the folders in the cloud storage mount, and the locally downloaded ones. So for any newly downloaded movies, it'll download the poster.jpg files, and they'll get uploaded with the daily upload script.
If an overwrite scan is to be done, all the new poster.jpg files generated, will also be saved to the local storage, and later uploaded with the daily upload script.
This setup works wonderfully tbh. All credits to this dude.

This is the daily upload script. Which is just a fancy script for moving/uploading all the files from /home/appbox/private/local to the cloud storage. This script runs at 12:30AM every day, via a simple cronjob.

Then, as the files get uploaded to the cloud storage, the PMS on SRV2 picks it up automatically, and scans the new items/movies/series in automatically.

My Setup pt4: The real problem
The real problem is now this:
On SRV1 it'll download the poster.jpg files for the newly downloaded movies and series. And that'll tell RPDB to tell Plex to Refresh the Metadata for the movies that has either been updated or got a new poster.jpg generated.

On SRV2 meanwhile, this will have no effect, since the poster.jpg file is still on SRV1 as local storage, and has not yet been uploaded through the daily upload script.

Describe the solution you'd like
The perfect solution would obviously be a "delay" feature, to the Plex Metadata Refresh. I would love to be able to delay the Metadata Refresh to after my upload script has done running, which in my case would be around 4:00PM.

This poses several problems though, as RPDB needs to save, log and/or cache all the previous movie/series matches and poster.jpg upgrades, to be able to remember what movies/series it'll need to do a metadata refresh.

E.g. if the RPDB app closes/crashes, or if the server rebooted, the refresh wouldn't happen, as it would have lost the saved data.

So maybe if RPDB utilized some sort of database file/sqlite/mariadb/postgres for storing the matches, that have to be delayed. Just the thought of working with database-files makes my head hurt, so I can't fault you, if you hate that idea.

Additional context
Sorry again for these massive wall of texts. And sorry if there are parts that doesn't make any sense.

[Feature Request] HLG support (weird type of HDR)

[Feature Request] HLG support

Is your feature request related to a problem? Please describe.
Some TV series use the HLG format, which is sort-of HDR but sort-of it's own thing.
I'm definitely not an expert on this..

Describe the solution you'd like
But! It would be nice with:

  1. A separate badge for it (not sure about this, as pretty much every device just registers it as HDR)
  2. An option for the probing to recognize HLG and either tag it as HLG or HDR in the rpdb.json (again, not sure about what's best.. HLG would probably be most accurate)

Additional context
A few logs from a few episodes with the HLG:

S01E01: https://0bin.net/paste/zuY3IPzx#FRwsAksOMDucvf8VIsLkzypQBNq56i8auKX7MsGUhBF
S01E05: https://0bin.net/paste/xOiG6VWV#DB0u1wk2m9zsXPI6b-SoP8U3Wz06jH2X0yRBZ+hbXaF
S02E01: https://0bin.net/paste/VylBZrVH#-+JAsw0GT1IyVHIXzOfSuL4aVEbCijuWdpFDygvuuBN
S02E07: https://0bin.net/paste/agsCA4tC#-7IAF5z29BIq068xJ6gO7knkz2LMyvBHOMABHSy9AeW

Automatic badges and rpdb.json creation

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)

[Feature Request] Network Drive (e.g. rclone) polling support

[Feature Request] Network Drive (e.g. rclone) polling support ..
as a way to look for newly created folders ๐Ÿ˜„

Is your feature request related to a problem? Please describe.
Right now, the rpdb-folders doesn't recognize the new folders created by a network drive, mounted through rclone.
Whenever rclone is polling for new changes in the mounted folders, rpdb-folders does not recognize them as new folders, and therefore won't add new posters (and/or backdrops) automatically. This results in the user having to do a manual full scan (which takes unnecessary API hits).

Describe the solution you'd like
Support for network drive "polling", so rpdb-folders will look for newly "discovered" (polled) folders, that wasn't present when the initial scan was done.

Additional context
I know I mentioned this on reddit, but this seems more organized ๐Ÿ‘

[Feature Request] Individual badge selection for movie/series posters

[Feature Request] Individual badge selection for movie/series posters
Kind of related to #12

Is your feature request related to a problem? Please describe.
I just realized it's not possible to edit the badges of individual posters. Right now it's possible to select badges, for each media folder selected. This mostly works fine. But in my case, the library can be somewhat mixed with 4K and the upcoming "4K Upscaled" and "Dolby Vision" badge(s).
It would be very help to "overwrite" individual movie (and/or series) posters with certain badges, e.g. "4K Upscaled" and "Dolby Vision".

Describe the solution you'd like
This could be a part of the Edit Movie Poster or Edit Series Poster, e.g.

  1. Press Edit Movie Poster
  2. Search for the movie folder, you want to edit
  3. Select Edit Badge(s) for this poster or something similiar
  4. Enter the same menu as Add Badges / Label, just for the selected poster

Additional context
Again, this would be helpful, as some movies are 4K Upscaled, and some have Dolby Vision. This would be an easier solution (or maybe just an alternative solution), than creating media folders for each and every category:
E.g. 1x 4K Upscaled library, 1x "Real" 4K library, 1x 4K Upscaled+Dolby Vision and 1x"Real" 4K+Dolby Vision library.'

Editing the individual posters seems easier to me atleast

Edit: Also thanks for all your work ๐Ÿ˜„ ๐Ÿ‘

Badge for Streaming Service

Hi,

Would it be possible to add badges for the streaming services that can be added to the posters?

Perhaps that can be a different type of poster?

Thanks.

[Feature Request] Edit Movie/Series Poster in Media Folder of choice

[Feature Request] Edit Movie/Series Poster in Media Folder of choice
Hey again, sorry for spamming up your Github issue page.
Just realized another thing, which could be useful.

Is your feature request related to a problem? Please describe.
Whenever you want to edit either a movie poster or series poster, you have to search all "Movie" media folders and/or all "Series" media folders at the same time.
This can be a problem because of duplicates. E.g. if you have a 4K Movie folder, 4K Remux folder, 1080p Folder and so on. They'll probably have the same movie/series folder names, and it'll be hard to distinguish between which one's which. You might want to have different posters for each library, or just for "OCD" purposes, have them seperated.

Describe the solution you'd like
It would be nice, if you have multiple Movies (or Series) media folders, that you could select between the different Media folders, before searching.

Additional context
E.g.

  1. Press Edit Movie Poster
  2. In there, add an option to Choose Media Folder
    2.1 Could be the same layout as the Edit Media Folders page
  3. From there, search within that chosen Media Folder
  4. Avoid duplicates, be awesome, find poster, edit whatever, exit

matching IDs in folder names

Hi,

you mention in last update this point:

  • Support matching IDs in folder names, this matching type guarantees 100% perfect matches (examples: [tmdb-x], {tmdb-x}, [tvdb-x], {tvdb-x}, [imdb-x], {imdb-x}, etc)

it's now working with me:
Matched Starstruck (2021) [tvdb-401112] by TVDB ID in folder name
No poster available for Starstruck (2021) [tvdb-401112]

i have used Windows RPDB Folders v0.1.2 .

Season Posters

Hi,

Would it be possible to add season posters too?

For TV shows, adding quality badges to the complete show poster is problematic since there is no guarantee that all the episodes across the seasons were released in the same quality or have the audio/video characteristics like Dolby Vision/HDR/TrueHD/Atmos etc. In contrast to that, episodes in the same season almost always have the same characteristics.

Almost all rating sites also have seasonal ratings too, in addition to the show ratings, which would be another nice addition for the season poster.

Thanks for considering.

Poster localization

Hello,
i'd like to know if posters are also localized or are just in English.
For example i use emby and all posters, where available, now are in italian, what about if i use rpdb-folders?
Tnx

[Issue] v0.1.1 - Not able to set password - nothing happens.

Describe the bug
I'm not able to set password. When you enter the password in the Choose Password and press Save Password, nothing happens. Restarting the app does nothing as well.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the config page at X.X.X.X:8750 (remote URL in my case)
  2. Click on Choose Password
  3. Enter your password and press Save Password
  4. Return to main-page (after pressing Save Password)
  5. Nothing happens
  6. Restart rpdb-folders, nothing happens.

Expected behavior
The config.js should've updated the "pass":false to "pass":true and the rpdb-folders app should've remembered the password I just set.

Operating System:

  • OS: Ubuntu 20.04.2 LTS

Version:

  • Version v0.1.1

Additional context
I tried setting the password, updating the config.js manually to "pass":true. But after reloading the rpdb-folders, it didn't recognize the password I just set.

Multiple trigger options

I know your on vaca bud. This isn't urgent at all, just a suggestion. Is it possible to make the trigger options check boxes instead of radio buttons? Presently I run 2 instances of posters, one with polling and the other with arr triggers. Reason being I sometimes have to manually copy in content that isn't available in the arrs such as niche shows or ppv style events. Would be nice to be able to enable polling + arrs.

Appreciate the consideration.

Manual Poster upload/creation not working

Hey bud,
Tried to add a custom poster today in two different ways. Here's what I did to reproduce:
Click Edit Movie Poster
Search for folder name
Find the folder and click it
I then get the page with the "Missing Poster" place holder and the options such as custom poster, create poster etc.

From here, I've tried a few different things:

  1. Click Custom poster, paste in a URL for the jpg, and click "Load Poster Image." Nothing happens. I've let it sit here for 5m but it never loads the image.
  2. Click Create poster - enter image URL then click "Preview Poster" - No image
  3. Click Create poster - enter TMDB URL, click preview poster, no image

If I click "Submit" on options 2 or 3, it says thanks for submitting the info to the db. But I cant seem to figure out how to get it to load a poster. Also, theres no way to directly upload a poster file via the web interface, correct?

Thanks in advance,
-Ed

[Bug / Issue] Some HDR (PQ) not detected properly by Automatic Badge probing

Describe the bug
Some HDR is not detected properly, when probing TV series episodes.
This has not happened in my entire movie library, so I'm pretty sure it's specific to WEB based HDR episodes of some TV series.

From my short research, it's the HDR episodes tagged with:
"transfer_characteristics": "PQ" in the mediainfo output (JSON).

These episodes containing that PQ string will not get detected as HDR in the rpdb.json generated.

Logs
I've found a few series with this issue.. All seem to have the "PQ" thing in common:
TV Series:

--> Loki
Generated from S01E01:
Mediainfo Output: https://0bin.net/paste/NaAweyYp#1JPE1wjthnoSND+MDRvRHIOSF1jHezXlD1T8rsnyX4-
rpdb.json Output: https://0bin.net/paste/jZUR4bEa#-OwcDHcRIcpc24Q4JgHjFrozVF1Ik+Why7GKtq13f3N
	
--> The Falcon and the Winter Soldier
Generated from S01E01:
Mediainfo Output: https://0bin.net/paste/vIwNRsgV#IRCIY+Fi4HPDQvsEAtazokSAo2YVAzFb3EPBpWLrcZi
rpdb.json Output: https://0bin.net/paste/8Z5CaHuD#AoWmLL2HFQqRujQTTyXUZov2G-H5YPTyk54UJzjWFTF
	
--> The Mandalorian:
Generated from S01E01:
Mediainfo Output: https://0bin.net/paste/ivIiJ1i3#UUJgsHIWwfNJRySO3qwSI7O3xTbrNZhH8OxL0jdm7BO
rpdb.json Output: https://0bin.net/paste/tyxCoMhr#9oZijvgK21TjFnxGeBqIH4NQjPMRWuU7v7rmKbkTZ5T
	
--> 11.22.63 (non-HDR series to compare)
Mediainfo Output: https://0bin.net/paste/ynVsirIM#8A4rDKHfnI3xPD-GhgkNAj8az52TkavUDi35PR6Y5mE

Expected behavior
For the rpdb.json to include "isHdr": true when it detects "PQ" HDR.

OS:

Distributor ID: Ubuntu
Description:    Ubuntu 21.04
Release:        21.04
Codename:       hirsute

RPDB Version

  • Version v0.1.7

Additional context
Thinking the problem is the lack of HDR data for some reason... Except for the "PQ".

Usually it says something about SMPTE or directy HDR 10 in there.
Not in these files, but Plex registers (correctly) them as HDR.

Sonarr detects them as HDR as well, some relevant code here:
https://github.com/Sonarr/Sonarr/blob/87897d56ea62544a36986eb09d420649668d7400/src/NzbDrone.Core.Test/OrganizerTests/FileNameBuilderTests/FileNameBuilderFixture.cs#L898-L912

Looks like they're going for the "PQ" tag as well.

[Issue/Bug] Folders with the exact same name, in different media folders, will duplicate poster from each other

[Issue/Bug] Folders with the exact same name, in different media folders, will duplicate poster from each other

Describe the bug
If you have two folders with the exact same name, in different media folders, you can't update them separately.

To Reproduce
Steps to reproduce the behavior:

  1. Create two folders, one named 4KTVand TV Shows
  2. In both of them, create a sample folder with the same name
  3. In my case, Chernobyl (2019) [imdb-tt7366338]
  4. Add both 4KTV and TV Shows to RPDB as TV media folders
  5. Let RPDB scan both of them, adding poster.jpg to both folders
  6. Edit one of the posters through RPDB:
  7. Edit Series Poster --> Search for Folder Name
  8. Select 4KTV folder and find the Chernobyl (2019) [imdb-tt7366338]
  9. Edit some badges in, e.g. make it extra cool with some 4K badges
  10. Either the 4KTV version will get updated, or the one residing in TV Shows (or both of them)
  11. In my case... I'll go and edit the same Chernobyl (2019) [imdb-tt7366338], this time selecting TV Shows
  12. You'll see the 4K badges present

Another way of testing this:
From Step 5:
6. Delete both poster.jpg, generated by RPDB
7. Go back to Edit Series Poster --> Search for Folder Name
8. Select 4KTV and search for the Chernobyl (2019) [imdb-tt7366338] folder
9. Select Update Ratings to refresh poster
10. The new poster.jpg will be put in the Chernobyl (2019) [imdb-tt7366338] folder residing in the TV Shows media folder - and NOT the 4KTV media folder.

Expected behavior
The posters getting edited separately and not being of one entitiy / sharing the poster.jpg

Operating System:

  • OS: Ubuntu 20.04.2 LTS

Version:

  • Version v0.1.4

Error: ENOENT

I'v just bought a api key, i wrote a mail with this problem but i think it is better to write here.

The api works fine.

I'm using rpdb folders with windows and i have network folders mounted

I though it was all automatic, but i don't understand how to make it start.
I think i settled all up, but i don't know how to start scan and download posters with ratings.
I managed to scan manually a folder and select poster, but how to make i write the poster to the movie folder?

I have network folders mounted in windows.

Can you give me any suggestions?

In console i see this.

{ Error: ENOENT: no such file or directory, scandir 'Z:\Movies\12 anni schiavo (2013)'
at Object.readdirSync (fs.js:790:3)
at Object.fs.readdirSync (pkg/prelude/bootstrap.js:828:35)
at getDirectories (C:\snapshot\rpdb-folders\index.js:0:0)
at theseFolders.forEach.mediaFolder (C:\snapshot\rpdb-folders\index.js:0:0)
at Array.forEach ()
at startFetchingPosters (C:\snapshot\rpdb-folders\index.js:0:0)
at app.get.passwordValid (C:\snapshot\rpdb-folders\index.js:0:0)
at passwordValid (C:\snapshot\rpdb-folders\index.js:0:0)
at app.get (C:\snapshot\rpdb-folders\index.js:0:0)
at Layer.handle [as handle_request] (C:\snapshot\rpdb-folders\node_modules\express\lib\router\layer.js:95:5)
errno: -4058,
syscall: 'scandir',
code: 'ENOENT',
path: 'Z:\Movies\12 anni schiavo (2013)' }

[Feature Request] Go back one level/step in the "Edit Movie/Series Poster" menu

[Feature Request] Go back one level/step in the "Edit Movie/Series Poster" menu

Is your feature request related to a problem? Please describe.
When editing multiple posters using either the Edit Movie Poster or Edit Series Poster menus, it can be a bit time consuming having to return to the main configuration page, after pressing "Close", after editing a poster.

Describe the solution you'd like
It would be nice to have a "back-one-step" button.
So instead of returning to the main configuration page, after pressing Close, it would be nice to have a Back button, which would return to the folder overview (the one you enter at first, when pressing either Edit Movie Poster or Edit Series Poster).

Additional context
So it could work like:

  1. Press Edit Movie Poster
  2. Enter the Search Movie Folders menu
  3. Find the specified movie folder
  4. Edit whatever you need to, e.g. Fix Match
  5. Press Back and return to the Search Movie Folders overview.

Form for submitting poster issues

Hi,

Can we have a Google Form or similar to submit any poster issues like tmdb-314367 for example, since it's returning a blank poster with 200 as the response code rather than 404, which can be handled properly?

Thanks.

[Feature Request] Show a list of unmatched items

It would be very useful to show a list of unmatched Movies/TV series and manually match them in the same manner that an incorrect match is manually fixed.

Ideally also being able to search the unmatched items in the "Edit Movie Poster"/"Edit Series Poster" sections would be useful.

Have movie/show edit search results display full path with line wrap

Feature suggestion - when having multiple versions of the same movie in different root paths, e.g. HD, 4K, it can be difficult to know which search results is which if the movie or show folder is named the same. Suggesting adding full path for results, with line wrap for ease of use on mobile. Thanks for the consideration!

3D Badge

A user requested this and I completely forgot about it until I read some emails again..

Feature request: option to move/delete poster/background when no media file exists

Me again. :)
Feature request for your consideration. We often reorg our media. E.g. move ended shows or old movies to an archive folder. Unfortunately *arrs don't send connect triggers on move. Rpdb has a feature to skip folders without media. But would be nice to have a feature to delete or move *.jpg to a quarantine folder in that same scenario so we aren't left with folders with just poster/background.jpg left behind.

Thanks for your consideration.
Ed

[Feature Request] Command-line options (e.g. passing commands to running instance)

[Feature Request] Command-line options (passing commands to running instance)

Is your feature request related to a problem? Please describe.
Not sure if it's a problem, but it would be nice addition to have a few command-line options.
Especially if they could be "passed" towards an already running instance of rpdb-folders, since (in my case) I'm running it 24/7 with a systemd service file.
This would also make it possible to make some custom cronjobs for various setups ๐Ÿ˜„

Describe the solution you'd like
It would be nice to have commands like: (these are just some ideas)
--initiate-full-scan to trigger a full scan
--initiate-tv-scan to trigger a scan of the TV media folders added to rpdb-folders
--initiate-movie-scan to trigger a scan of the Movie media folders added to rpdb-folders
--initiate-full-overwrite-scan to trigger a full overwrite scan of all added media folders
--initiate-overwrite-tv-scan to trigger an overwrite scan of the TV media folders added to rpdb-folders
--initiate-overwrite-movie-scan to trigger an overwrite scan of the Movie media folders added to rpdb-folders

Additional context
I hope it's possible ๐Ÿ‘

[Issue] v0.1.1 - RPDB Config page shows "A new update is available", while latest version is installed.

Describe the bug
After installing v0.1.1, the rpdb config page at X.X.X.X:8750 still shows up with a message, saying
A new update is available, download it here!. Even after installing the rpdb-folders version it redirects to, the same message still shows.

To Reproduce
Steps to reproduce the behavior:

  1. Download v0.1.1 for Linux through the Github Release page
  2. Go to the rpdb config-page at X.X.X.X:8750 (remote URL in my case)
  3. See the A new update is available, download it here! prompt
  4. Download the version it redirects to
  5. Remove the old linux-rpdb-folders: rm -rf linux-rpdb-folders
  6. Unzip the new one: unzip linux-rpdb-folders.zip
  7. Run the rpdb-folders app
  8. Same message appears: A new update is available, download it here!

Expected behavior
After applying / running the latest version of rpdb-folders, the message should not appear.

Screenshots
https://i.imgur.com/YTatzqa.png

Operating System:

  • OS: Ubuntu 20.04.2 LTS

Version:

  • Version v0.1.1

Additional context
Nothing to add for now.

[Feature Request] Adding more badges (quality, DoVi, etc)

[Feature Request] A "Fake 4k" / "Upscaled 4k" badge
[Feature Request] Adding more badges (quality, DoVi, etc)

Is your feature request related to a problem? Please describe.
As of now, there are multiple badges available for certain tiers, which is awesome, and which I personally use for one of my 4K libraries.
But, as some of you might now, a lot of 4K movies are not "real 4k", but rather upscaled 4K.

Describe the solution you'd like
This is in nitpicky territory, but it would be nice to have the addition of a "Fake 4K" or "Upscaled 4K" badge to differentiate between the real 4K blurays and the ones that are "just" upscaled.
Again, this might be a minor thing, as it might not matter that much.

Additional context
Not sure what color it should be. The regular 4K badge is gold/yellow-ish colored, which fits the "proper 4k" category. Not sure what color the fake 4k / upscaled 4k badge should be.

Edit/afterthought: Maybe it should be named "2KDI", as it not as "hostile" sounding as fake.

Error: libnode.so.72 in linux

In Ubuntu 16.04 i have this error with version 0.1.4 while i have no error with version 0.1.3

Any hint?

pkg/prelude/bootstrap.js:1244
throw error;
^

Error: libnode.so.72: cannot open shared object file: No such file or directory
at Object.Module._extensions..node (internal/modules/cjs/loader.js:1186:18)
at Module.load (internal/modules/cjs/loader.js:984:32)
at Function.Module._load (internal/modules/cjs/loader.js:877:14)
at Module.require (internal/modules/cjs/loader.js:1024:19)
at Module.require (pkg/prelude/bootstrap.js:1225:31)
at require (internal/modules/cjs/helpers.js:72:18)
at bindings (/opt/linux-rpdb-folders/node_modules/bindings/bindings.js:112:48)
at Object. (/opt/linux-rpdb-folders/node_modules/drivelist/js/index.js:25:27)
at Module._compile (internal/modules/cjs/loader.js:1136:30)
at Module._compile (pkg/prelude/bootstrap.js:1281:32)

[Feature Request] Timestamps in logs

[Feature Request] Timestamps in logs

Is your feature request related to a problem? Please describe.
Whenever you look at the log file created by rpdb-folders, they contain no timestamps.
Having timestamps help with analyzing how long a full scan takes, a full overwrite scan takes, or probing of a large folder.

Describe the solution you'd like
It would be nice if the logs contained timestamps.

Additional context
That's it ๐Ÿ‘

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.