rivenmedia / riven

Handle your Media Library with ease!
https://rivenmedia.github.io/wiki/
GNU General Public License v3.0
396 stars 54 forks source link

Queue plex.run update scans for new files. #873

Open Treader opened 1 week ago

Treader commented 1 week ago

I found with the plex.run the scan shows as fired off it seems like 2 of watchlist items were done at the same time and only 1 showed up in Plex. I reran the command manually and it shows the 2nd one.

24-11-08 23:54:17 | 🔗 SYMLINKER | symlink.run - Symlinks created for P 24-11-08 23:54:17 | 📽️ PLEX | plex.run - Updated section Movies for P 24-11-08 23:54:26 | 🔗 SYMLINKER | symlink.run - Symlinks created for H 24-11-08 23:54:26 | 📽️ PLEX | plex.run - Updated section Movies for H

On Plex, only P shows up. I have watchlist RSS scanned every 1 minute. If I slowly add to the list and take a few minutes, this doesn't happen, but if I find 2 movies of interest this conflict happens.

A manual way to have plex scan the file would also be nice on the manage section of the request.

Can the plex server be queried to see if a scan is in process and then add the plex.run to a queue to check in another X seconds?