Comments (14)
@OmgImAlexis as far as i'm aware it refreshes the entire library.
from medusa.
I think either the timeout should be configurable, or better yet only call it once at the end of postprocessing if results were found.
from medusa.
@OmgImAlexis its calls plex to refresh ONLY that show. To avoid scan full library
from medusa.
@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.
from medusa.
@p0psicles another candidate for the Throttle class ... limit calls to refresh plex to, for example, once an hour
from medusa.
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.
from medusa.
from medusa.
@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.
from medusa.
from medusa.
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.
from medusa.
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.
from medusa.
@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.
from medusa.
@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?
On my setup a refresh to my show library with over 13k episodes takes well over 5 minutes and when multiple refreshes are done it can actually end up taking over half an hour for new episodes to appear as it seems to queue the refreshes one after each other or something like that.
@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.
from medusa.
Added to master feature request list - discussion for feature will continue here even though issue is closed.
from medusa.
Related Issues (20)
- [APP SUBMITTED]: Missing time zone for network: K2
- Unhashable type encountered. Warning / Bug during Backlog Search
- qBittorrent authentication keeps failing
- airdate_offset setting is not respected if indexer airdate yields status as UNAIRED HOT 1
- xml.etree.ElementTree.ParseError: no element found: line 29967, column 53
- [APP SUBMITTED]: OSError: [Errno 22] Invalid argument: "/tv/Death's Game/Season 01/Deaths.Game.S01E03.1080p.AMZN.WEB-DL.DDP2.0.H.264-MARK.mkv"
- [APP SUBMITTED]: Missing time zone for network: Lionsgate Television
- No connection adapters were found for magnet link when using Torznab search provider from Jackett
- [APP SUBMITTED]: Missing time zone for network: ivi
- [APP SUBMITTED]: sqlite3.IntegrityError: UNIQUE constraint failed: imdb_info.imdb_info_id
- [APP SUBMITTED]: sqlite3.IntegrityError: UNIQUE constraint failed: imdb_info.imdb_info_id
- [APP SUBMITTED]: sqlite3.IntegrityError: UNIQUE constraint failed: imdb_info.imdb_info_id
- [APP SUBMITTED]: TypeError: WebRoot.index() got an unexpected keyword argument 'rest_route'
- [APP SUBMITTED]: Missing time zone for network: Cyfrowy Polsat
- [APP SUBMITTED]: Missing time zone for network: StudioCanal
- [APP SUBMITTED]: Missing time zone for network: SkyShowtime
- [APP SUBMITTED]: Missing time zone for network: TVOkids
- Trakt.tv API endpoint needs to be updated (api-v2launch.trakt.tv) HOT 1
- [APP SUBMITTED]: requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api-v2launch.trakt.tv', port=443): Max retries exceeded with url: /sync/watched/shows?extended=noseasons (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f1c785fe640>: Failed to establish a new connection: [Errno -2] Name or service not known')) HOT 2
- ERROR MAIN :: [c5a1e37] Missing time zone for network: EarthxTV
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from medusa.