-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ FEATURE ] Add timeout to Plex, etc. to prevent excessive scanning #206
Comments
I think either the timeout should be configurable, or better yet only call it once at the end of postprocessing if results were found. |
@OmgImAlexis its calls plex to refresh ONLY that show. To avoid scan full library |
@fernandog it may but Plex seems to rescan every single show. You sure it's not a quick scan of the show's library? Every single file that was processed when I was running it I had the whole "TV Show" library rescan. Even if it's just the one show that's still not the best idea since you could be processing a lot of files for the same show like when I added Pokemon and it processed 400+ files at once, there's no need to rescan the show 400+ times when once after they've all been added would be fine. |
@OmgImAlexis as far as i'm aware it refreshes the entire library. |
@p0psicles another candidate for the Throttle class ... limit calls to refresh plex to, for example, once an hour |
Once an hour doesn't really help at all since Plex itself can have an option to do it once an hour. Doing it per show would be a lot better. |
Plex also has an option to auto scan with any change to folders.
…On Tue, Feb 7, 2017 at 11:14 PM, X O ***@***.***> wrote:
Once an hour doesn't really help at all since Plex itself can have an
option to do it once an hour. Doing it per show would be a lot better.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#206 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGtVv0Was0hBv3sgp3q1l7FMPx5al0q3ks5raUE6gaJpZM4H3spV>
.
|
@ripper1967 I know that and that's why I'd like to have something that just updates a single show. There's no point in Plex rescanning 10k+ episodes just to see that a single show with for example 2 episodes has a new one. |
Oh i agree with you my plex is scaning all the time, was just pointing out
that there was an option for it that might be hooked into just to add a
show at a time without a full scan
…On Feb 8, 2017 1:41 AM, "X O" ***@***.***> wrote:
@ripper1967 <https://github.com/ripper1967> I know that and that's why
I'd like to have something that just updates a single show. There's no
point in Plex rescanning 10k+ episodes just to see that a single show with
for example 2 episodes has a new one.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#206 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGtVv-GaceWhDb1P_1eMfW6NZPXSJ-gDks5raWOVgaJpZM4H3spV>
.
|
That auto scan just watches the file system and then updates. That doesn't work if you're using a network drive, if you're using docker and some OSs don't allow it either. |
Unfortunately Plex doesn't have any method to say "update that show" You can either tell it "Look for any new items and add those" or "Refresh the Metadata for every item in library 'X'" My system runs a complete library update check of the TV section of my Plex library in 1 minute 20 seconds. Which contains 286 different shows, spanning 733 seasons with 10749 episodes. An update check on the Anime section of my Plex library takes about 40 seconds. That is for 215 shows, spanning 317 seasons and 5025 episodes. To scan both libraries would take about 2 minutes, I'd say a buffered call to plex where it would send one request every 5 minutes, consuming any duplicate requests between calls would be about the best you could do. |
@OmgImAlexis Plex doesnt allow update of just a single series, only a single library. And as for the update once per hour in plex, that will trigger every hour regardless of changes. Using the example I mentioned it would only trigger a refresh once per hour if you had new shows during that time. If you go 3 hours without a new episode added, it wouldnt trigger a scan. It would be great if Plex supported scanning for just a single series/path. |
@Thraxis there is a update only this show but it needs to be done from the cli. Maybe we could look into adding a simple plex channel that just exposes the refresh function that we can then call? @labrys that would help a little but still the single show would be ideal. Maybe we can see if Plex would be willing to add another API endpoint for single show refreshes? I've had them respond quite nicely to other requests for bugs and such. |
Added to master feature request list - discussion for feature will continue here even though issue is closed. |
If you add a lot of files to process all at once Sickrage tells Plex, etc. to rescan the library after every single file this can in some cases cause Plex to be completely unusable. I'd suggest we add a 20 second timeout and if there's another file processed within that time it resets it, after the timeout hits 0 only then do we send the refresh command. This would cause Plex to only scan the library once instead of in my case 500 times in 60 seconds.
The text was updated successfully, but these errors were encountered: