mynttt / UpdateTool

A tool to update the IMDB ratings for Plex libraries that contain movies/series and use the IMDB agent to receive ratings
GNU General Public License v3.0
250 stars 12 forks source link

IMDB Series ratings not updating. #100

Closed lukebates123 closed 10 months ago

lukebates123 commented 1 year ago

I'm trying to add IMDB series ratings and cannot get them to show up. Movies are working fine.

Running via Docker Plex Version 1.30.0.6486 I've subscribed to the TBDB and got a PIN.

docker run -dit -e RUN_EVERY_N_HOURS=12 -e UNLOCK_FOR_NEW_TV_AGENT="2" -e TVDB_API_KEY=XXXXXX -e TMDB_API_KEY=XxxxXXXXXXXXXXXXXX    -v "/nfs/config/plex/Library/Application Support/Plex Media Server":/plexdata     -v "/nfs/config/imdpupdaterconfig":/config     mynttt/updatetool

I'm not seeing any errors in the update log, the first time I ran it I saw the IMDB ratings get updated for the TV series.

[INFO ] - 2022-12-28 17:07:02 @ Main.loadImplementation: Loaded implementation << imdb-docker << updatetool.imdb.ImdbDockerImplementation
[INFO ] - 2022-12-28 17:07:02 @ Main.main: Running version: 1.6.6
[INFO ] - 2022-12-28 17:07:02 @ Main.main: Args: {imdb-docker={schedule=12}}
[INFO ] - 2022-12-28 17:07:02 @ Main.main: << INIT: imdb-docker @ {schedule=12} >>
[INFO ] - 2022-12-28 17:07:02 @ TmdbApiV3.<init>: Testing TMDB API (v3) key: 
[INFO ] - 2022-12-28 17:07:03 @ TmdbApiV3.<init>: Test passed. API Key is valid.
[INFO ] - 2022-12-28 17:07:03 @ ImdbDockerImplementation.bootstrap: TMDB API key enabled TMDB <=> IMDB matching. Will process TMDB backed Movie and TV Series libraries and TMDB orphans.
[INFO ] - 2022-12-28 17:07:04 @ TvdbApiV4.auth: Testing TMDB API (v4) pin: 
[INFO ] - 2022-12-28 17:07:04 @ TvdbApiV4.auth: Test passed. API Key is valid.
[INFO ] - 2022-12-28 17:07:04 @ ImdbDockerImplementation.bootstrap: TVDB API (TVDB_V4) authorization enabled IMDB rating update for Movies and TV Series with the TVDB agent.
[INFO ] - 2022-12-28 17:07:04 @ ImdbDockerImplementation.bootstrap: Starting IMDB Watchdog
[INFO ] - 2022-12-28 17:07:04 @ ImdbDockerImplementation.bootstrap: Plex data dir: /plexdata
[INFO ] - 2022-12-28 17:07:04 @ ImdbDockerImplementation.bootstrap: Unlocking library for IMDB TV Show rating update for the new TV Show agent: 2
[INFO ] - 2022-12-28 17:07:04 @ ImdbDockerImplementation.bootstrap: Capabilities: [TMDB, TVDB]
[INFO ] - 2022-12-28 17:07:04 @ Main.main: << INIT SUCCESS >>
[INFO ] - 2022-12-28 17:07:04 @ Scheduler.go: Scheduler is loading tasks... Blocking until completely set-up and ready to go.
[INFO ] - 2022-12-28 17:07:04 @ Scheduler.go: Scheduling tasks...
[INFO ] - 2022-12-28 17:07:04 @ Scheduler.lambda$go$0: Scheduled imdb-docker task to run @ every 12 hour(s).
[INFO ] - 2022-12-28 17:07:04 @ Scheduler.lambda$go$1: Queued task imdb-docker for immediate execution.
[INFO ] - 2022-12-28 17:07:04 @ Scheduler.go: Running supplied tasks immediately NOW!
[INFO ] - 2022-12-28 17:07:04 @ TaskWrapper.run: ================================================
[INFO ] - 2022-12-28 17:07:04 @ TaskWrapper.run: Starting task: imdb-docker | Execution count: 0
[INFO ] - 2022-12-28 17:07:04 @ TaskWrapper.run: ================================================
[INFO ] - 2022-12-28 17:07:04 @ ImdbDockerImplementation$ImdbBatchJob.run: LIBRARIES => PRE LIBRARY FILTERING
[INFO ] - 2022-12-28 17:07:04 @ ImdbDockerImplementation$ImdbBatchJob.lambda$run$0: Found library [MOVIE] Movies (ID=1) with agent: tv.plex.agents.movie and 2234 item(s).
[INFO ] - 2022-12-28 17:07:04 @ ImdbDockerImplementation$ImdbBatchJob.lambda$run$0: Found library [SERIES] TV Shows (ID=2) with agent: tv.plex.agents.series and 8797 item(s).
[INFO ] - 2022-12-28 17:07:04 @ ImdbDockerImplementation$ImdbBatchJob.run: LIBRARIES => POST LIBRARY FILTERING
[INFO ] - 2022-12-28 17:07:04 @ ImdbDockerImplementation$ImdbBatchJob.lambda$run$3: Will process library Movies (ID=1) with agent: tv.plex.agents.movie and 2234 item(s).
[INFO ] - 2022-12-28 17:07:04 @ ImdbDockerImplementation$ImdbBatchJob.lambda$run$3: Will process library TV Shows (ID=2) with agent: tv.plex.agents.series and 8797 item(s).
[INFO ] - 2022-12-28 17:07:05 @ ImdbDatabaseSupport.testPlexSqliteBinaryVersion: Plex SQLite binary version: 3.35.5 | COMPILER=clang-11.0.1 | ENABLE_COLUMN_METADATA | ENABLE_FTS3 | ENABLE_FTS3_PARENTHESIS | ENABLE_ICU | ENABLE_RTREE | ENABLE_UNLOCK_NOTIFY | MAX_EXPR_DEPTH=2048 | OMIT_DEPRECATED | THREADSAFE=1 | 
[INFO ] - 2022-12-28 17:07:06 @ ImdbDockerImplementation$ImdbBatchJob.run: Library IDs on ignore list: []
[INFO ] - 2022-12-28 17:07:06 @ ImdbRatingDatasetFactory.readData: Reading data...
[INFO ] - 2022-12-28 17:07:12 @ ImdbRatingDatasetFactory.readData: 1259095 lines read.
[INFO ] - 2022-12-28 17:07:12 @ TmdbApiV3.<init>: Testing TMDB API (v3) key: 
[INFO ] - 2022-12-28 17:07:12 @ TmdbApiV3.<init>: Test passed. API Key is valid.
[INFO ] - 2022-12-28 17:07:12 @ TvdbApiV4.auth: Testing TMDB API (v4) pin: 
[INFO ] - 2022-12-28 17:07:12 @ TvdbApiV4.auth: Test passed. API Key is valid.
[INFO ] - 2022-12-28 17:07:12 @ ImdbDockerImplementation$ImdbBatchJob.run: [MOVIE] Movies has 2234 item(s)
[INFO ] - 2022-12-28 17:07:12 @ ImdbDockerImplementation$ImdbBatchJob.run: [SERIES] TV Shows has 8797 item(s)
[INFO ] - 2022-12-28 17:07:12 @ ImdbDockerImplementation$ImdbBatchJob.run: Processing [MOVIE] Movies with UUID c107664f-ef7d-4711-9a93-bd9e0915919e at stage: CREATED
[INFO ] - 2022-12-28 17:07:12 @ ImdbPipeline.analyseDatabase: Resolving IMDB identifiers for items. Only warnings and errors will show up...
[INFO ] - 2022-12-28 17:07:12 @ ImdbPipeline.analyseDatabase: Items that show up here will not be processed by further stages of the pipeline.
[INFO ] - 2022-12-28 17:07:12 @ ImdbPipeline.analyseDatabase: Starting watchdog to print progress to std::out with a delay and interval of 1 minute...
[INFO ] - 2022-12-28 17:07:12 @ ImdbPipeline.analyseDatabase: Progress printing watchdog has been stopped. Cancelation status: true
[INFO ] - 2022-12-28 17:07:12 @ ImdbPipeline.analyseDatabase: Save point: Persisting caches to keep queried look-up data in case of crashes or hang-ups.
[INFO ] - 2022-12-28 17:07:12 @ ImdbPipeline.analyseDatabase: Filtered 9 invalid item(s).
[INFO ] - 2022-12-28 17:07:13 @ ImdbPipeline.transformMetadata: 2155 item(s) need no update.
[INFO ] - 2022-12-28 17:07:13 @ ImdbPipeline.transformMetadata: Transforming 0 item(s)
[INFO ] - 2022-12-28 17:07:13 @ ImdbPipeline.transformMetadata: Transformed entries for 0 items(s).
[INFO ] - 2022-12-28 17:07:13 @ ImdbPipeline.transformMetadata: Save point: Persisting caches to keep queried look-up data in case of crashes or hang-ups.
[INFO ] - 2022-12-28 17:07:13 @ ImdbPipeline.updateDatabase: Nothing to update. Skipping...
[INFO ] - 2022-12-28 17:07:13 @ ImdbPipeline.updateXML: Updating XML fallback files for 0 item(s).
[INFO ] - 2022-12-28 17:07:13 @ ImdbPipeline.updateXML: Completed updating of XML fallback files.
[INFO ] - 2022-12-28 17:07:13 @ ImdbDockerImplementation$ImdbBatchJob.run: Job returned PASS : Job finished correctly
[INFO ] - 2022-12-28 17:07:13 @ ImdbDockerImplementation$ImdbBatchJob.run: Job finished successfully for [MOVIE] Movies with UUID c107664f-ef7d-4711-9a93-bd9e0915919e
[INFO ] - 2022-12-28 17:07:13 @ ImdbDockerImplementation$ImdbBatchJob.run: Processing [SERIES] TV Shows with UUID 85ea67a7-5f6d-4557-9777-58f7423b10d9 at stage: CREATED
[INFO ] - 2022-12-28 17:07:13 @ ImdbPipeline.analyseDatabase: Resolving IMDB identifiers for items. Only warnings and errors will show up...
[INFO ] - 2022-12-28 17:07:13 @ ImdbPipeline.analyseDatabase: Items that show up here will not be processed by further stages of the pipeline.
[INFO ] - 2022-12-28 17:07:13 @ ImdbPipeline.analyseDatabase: Starting watchdog to print progress to std::out with a delay and interval of 1 minute...
[INFO ] - 2022-12-28 17:07:13 @ ImdbPipeline.analyseDatabase: Progress printing watchdog has been stopped. Cancelation status: true
[INFO ] - 2022-12-28 17:07:13 @ ImdbPipeline.analyseDatabase: Save point: Persisting caches to keep queried look-up data in case of crashes or hang-ups.
[INFO ] - 2022-12-28 17:07:13 @ ImdbPipeline.analyseDatabase: Filtered 1932 invalid item(s).
[INFO ] - 2022-12-28 17:07:13 @ ImdbPipeline.transformMetadata: 7434 item(s) need no update.
[INFO ] - 2022-12-28 17:07:14 @ ImdbPipeline.transformMetadata: Transforming 0 item(s)
[INFO ] - 2022-12-28 17:07:14 @ ImdbPipeline.transformMetadata: Transformed entries for 0 items(s).
[INFO ] - 2022-12-28 17:07:14 @ ImdbPipeline.transformMetadata: Save point: Persisting caches to keep queried look-up data in case of crashes or hang-ups.
[INFO ] - 2022-12-28 17:07:14 @ ImdbPipeline.updateDatabase: Nothing to update. Skipping...
[INFO ] - 2022-12-28 17:07:14 @ ImdbPipeline.updateXML: Updating XML fallback files for 0 item(s).
[INFO ] - 2022-12-28 17:07:14 @ ImdbPipeline.updateXML: Completed updating of XML fallback files.
[INFO ] - 2022-12-28 17:07:14 @ ImdbDockerImplementation$ImdbBatchJob.run: Job returned PASS : Job finished correctly
[INFO ] - 2022-12-28 17:07:14 @ ImdbDockerImplementation$ImdbBatchJob.run: Job finished successfully for [SERIES] TV Shows with UUID 85ea67a7-5f6d-4557-9777-58f7423b10d9
[INFO ] - 2022-12-28 17:07:14 @ ImdbDockerImplementation$ImdbBatchJob.run: Completed batch successfully.
[INFO ] - 2022-12-28 17:07:14 @ TaskWrapper.run: ================================================
[INFO ] - 2022-12-28 17:07:14 @ TaskWrapper.run: Suggesting JVM to run the GC as soon as possible (Request might be ignored!)
[INFO ] - 2022-12-28 17:07:14 @ TaskWrapper.run: Completed imdb-docker in 9.606s. - Invoking next task or going to sleep. It is safe to suspend execution if no other task is being invoked immediately.
lukebates123 commented 1 year ago

Do I need to change anything with the scanner/agent?

image
mynttt commented 1 year ago

Have you set the docker environment variable UNLOCK_FOR_NEW_TV_AGENT to 2 (id of that tv show library)? Your library is using the "new" Plex-TV Agent and because there was no option yet to explicitly select IMDB as a rating source I have made it an opt-in so existing libraries that may not want to be processed by this tool are left alone.