Skip to content
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

Watchlist doesn't sync from Trakt to Plex #1575

Closed
3 tasks done
G4Zz0L1 opened this issue Sep 7, 2023 · 5 comments · Fixed by pkkid/python-plexapi#1239 or #1589
Closed
3 tasks done

Watchlist doesn't sync from Trakt to Plex #1575

G4Zz0L1 opened this issue Sep 7, 2023 · 5 comments · Fixed by pkkid/python-plexapi#1239 or #1589
Assignees
Labels
bug Something isn't working

Comments

@G4Zz0L1
Copy link

G4Zz0L1 commented Sep 7, 2023

Confirmation

  • I have read the README.md on the project homepage
  • I have checked if identical issue already exists
  • I have tried downgrading to find version that can be used as a workaround

The problem

As the title say, I can't make the watchlist sync from Trakt to Plex, I only want the sync to work one-way, from Trakt to Plex, not the other way around.
The sync for movies and series works fine, always from Trakt to Plex, as I sometimes watch something from other sources and want to sync the watched status on Plex.
In the logs I can't find anything useful, it seems that it skips every item from the watchlist as not present in Plex Discovery, even for items that exists only on Plex with a manual search.
I've only removed from the logs the 3 lines that it spams, filtered from the config file, the rest is all here.
What can I do to pinpoint the error?
It's a misconfiguration from my part?
Thanks in advance.

Error trace / logs

[...]
2023-09-07 15:23:32,382 DEBUG[trakt.core]:RESPONSE [get] (https://api-v2launch.trakt.tv/shows/170645/seasons?extended=episodes): <CachedResponse [200]: created: 2023-09-07 11:34:57 CEST, expires: 2023-09-07 19:34:57 CEST (fresh), size: 960 bytes, request: GET https://api-v2launch.trakt.tv/shows/170645/seasons?extended=episodes>
2023-09-07 15:23:32,385 INFO[PlexTraktSync]:Series processed in 1 min 3.4 seconds
2023-09-07 15:23:32,386 DEBUG[plexapi]:GET https://plex.tv/api/v2/user 
2023-09-07 15:23:32,387 DEBUG[requests_cache.policy.actions]:Cache directives from request headers: CacheDirectives()
2023-09-07 15:23:32,387 DEBUG[requests_cache.policy.actions]:Pre-read cache checks: Passed
2023-09-07 15:23:32,388 DEBUG[requests_cache.policy.actions]:Post-read cache actions: CacheActions(expire_after=-1, send_request=True)
2023-09-07 15:23:32,388 DEBUG[urllib3.connectionpool]:Starting new HTTPS connection (1): plex.tv:443
2023-09-07 15:23:32,757 DEBUG[urllib3.connectionpool]:https://plex.tv:443 "GET /api/v2/user HTTP/1.1" 200 None
2023-09-07 15:23:32,758 DEBUG[requests_cache.policy.actions]:Cache directives from response headers: CacheDirectives(max_age=0, must_revalidate=True, etag='W/"44e01cd5f7bb4fe8d669646388d69eeb"')
2023-09-07 15:23:32,758 DEBUG[requests_cache.policy.actions]:Pre-write cache checks: Passed
2023-09-07 15:23:32,793 DEBUG[charset_normalizer]:Encoding detection: utf_8 is most likely the one.
2023-09-07 15:23:32,794 DEBUG[plexapi]:GET https://metadata.provider.plex.tv/library/sections/watchlist/all?includeCollections=0&includeExternalMedia=0&includeUserState=0 
2023-09-07 15:23:32,795 DEBUG[requests_cache.policy.actions]:Cache directives from request headers: CacheDirectives()
2023-09-07 15:23:32,795 DEBUG[requests_cache.policy.expiration]:URL https://metadata.provider.plex.tv/library/sections/watchlist/all?includeCollections=0&includeExternalMedia=0&includeUserState=0 matched pattern "metadata.provider.plex.tv/library/sections/watchlist/all?*includeUserState=0": 0:00:01
2023-09-07 15:23:32,796 DEBUG[requests_cache.policy.actions]:Pre-read cache checks: Passed
2023-09-07 15:23:32,796 DEBUG[requests_cache.policy.actions]:Post-read cache actions: CacheActions(expire_after=datetime.timedelta(seconds=1), send_request=True)
2023-09-07 15:23:32,796 DEBUG[urllib3.connectionpool]:Starting new HTTPS connection (1): metadata.provider.plex.tv:443
2023-09-07 15:23:33,213 DEBUG[urllib3.connectionpool]:https://metadata.provider.plex.tv:443 "GET /library/sections/watchlist/all?includeCollections=0&includeExternalMedia=0&includeUserState=0 HTTP/1.1" 200 None
2023-09-07 15:23:33,215 DEBUG[requests_cache.policy.actions]:Cache directives from response headers: CacheDirectives(no_store=True, etag='W/"7fe-mPQpZ4TVv4yin8bW03ek0g0mtbQ"')
2023-09-07 15:23:33,215 DEBUG[requests_cache.policy.actions]:Pre-write cache checks: disabled by headers
2023-09-07 15:23:33,215 DEBUG[requests_cache.session]:Skipping cache write for URL: https://metadata.provider.plex.tv/library/sections/watchlist/all?includeCollections=0&includeExternalMedia=0&includeUserState=0
2023-09-07 15:23:33,217 DEBUG[plexapi]:GET https://metadata.provider.plex.tv/
2023-09-07 15:23:33,218 DEBUG[requests_cache.policy.actions]:Cache directives from request headers: CacheDirectives()
2023-09-07 15:23:33,218 DEBUG[requests_cache.policy.expiration]:URL https://metadata.provider.plex.tv/ matched pattern "metadata.provider.plex.tv/": 86400
2023-09-07 15:23:33,218 DEBUG[requests_cache.policy.actions]:Pre-read cache checks: Passed
2023-09-07 15:23:33,219 DEBUG[requests_cache.policy.actions]:Post-read cache actions: CacheActions(expire_after=86400, send_request=True)
2023-09-07 15:23:33,260 DEBUG[urllib3.connectionpool]:https://metadata.provider.plex.tv:443 "GET / HTTP/1.1" 304 0
2023-09-07 15:23:33,260 DEBUG[requests_cache.policy.actions]:Cache directives from response headers: CacheDirectives(max_age=0, stale_while_revalidate=86400, etag='W/"393-8zhmj4SUGTXGrIOlSqarTce5BsI"')
2023-09-07 15:23:33,260 DEBUG[requests_cache.policy.actions]:Pre-write cache checks: disabled status
2023-09-07 15:23:33,261 DEBUG[requests_cache.policy.actions]:Response for URL https://metadata.provider.plex.tv/ has not been modified
2023-09-07 15:23:33,286 DEBUG[plexapi]:Reloading Movie 'Elemental' for attr 'guids'
2023-09-07 15:23:33,286 DEBUG[plexapi]:GET https://metadata.provider.plex.tv/library/metadata/617d3aaf6d9bee0ff53feabb?checkFiles=1&includeAllConcerts=1&includeBandwidths=1&includeChapters=1&includeChildren=1&includeConcerts=1&includeExternalMedia=1&includeExtras=1&includeGeolocation=1&includeLoudnessRamps=1&includeMarkers=1&includeOnDeck=1&includePopularLeaves=1&includePreferences=1&includeRelated=1&includeRelatedCount=1&includeReviews=1&includeStations=1&includeUserState=0
2023-09-07 15:23:33,288 DEBUG[requests_cache.policy.actions]:Cache directives from request headers: CacheDirectives()
2023-09-07 15:23:33,288 DEBUG[requests_cache.policy.expiration]:URL https://metadata.provider.plex.tv/library/metadata/617d3aaf6d9bee0ff53feabb?checkFiles=1&includeAllConcerts=1&includeBandwidths=1&includeChapters=1&includeChildren=1&includeConcerts=1&includeExternalMedia=1&includeExtras=1&includeGeolocation=1&includeLoudnessRamps=1&includeMarkers=1&includeOnDeck=1&includePopularLeaves=1&includePreferences=1&includeRelated=1&includeRelatedCount=1&includeReviews=1&includeStations=1&includeUserState=0 matched pattern "metadata.provider.plex.tv/library/metadata/*": 84 days, 0:00:00
2023-09-07 15:23:33,288 DEBUG[requests_cache.policy.actions]:Pre-read cache checks: Passed
2023-09-07 15:23:33,289 DEBUG[requests_cache.policy.actions]:Post-read cache actions: CacheActions(expire_after=datetime.timedelta(days=84), send_request=True)
2023-09-07 15:23:33,352 DEBUG[urllib3.connectionpool]:https://metadata.provider.plex.tv:443 "GET /library/metadata/617d3aaf6d9bee0ff53feabb?checkFiles=1&includeAllConcerts=1&includeBandwidths=1&includeChapters=1&includeChildren=1&includeConcerts=1&includeExternalMedia=1&includeExtras=1&includeGeolocation=1&includeLoudnessRamps=1&includeMarkers=1&includeOnDeck=1&includePopularLeaves=1&includePreferences=1&includeRelated=1&includeRelatedCount=1&includeReviews=1&includeStations=1&includeUserState=0 HTTP/1.1" 304 0
2023-09-07 15:23:33,353 DEBUG[requests_cache.policy.actions]:Cache directives from response headers: CacheDirectives(max_age=0, stale_while_revalidate=43200, etag='W/"7464-w2sEjf0C3gRpPZMrClQUrTQSPXs"')
2023-09-07 15:23:33,353 DEBUG[requests_cache.policy.actions]:Pre-write cache checks: disabled status
2023-09-07 15:23:33,353 DEBUG[requests_cache.policy.actions]:Response for URL https://metadata.provider.plex.tv/library/metadata/617d3aaf6d9bee0ff53feabb?checkFiles=1&includeAllConcerts=1&includeBandwidths=1&includeChapters=1&includeChildren=1&includeConcerts=1&includeExternalMedia=1&includeExtras=1&includeGeolocation=1&includeLoudnessRamps=1&includeMarkers=1&includeOnDeck=1&includePopularLeaves=1&includePreferences=1&includeRelated=1&includeRelatedCount=1&includeReviews=1&includeStations=1&includeUserState=0 has not been modified
2023-09-07 15:23:33,375 DEBUG[trakt.core]:get: https://api-v2launch.trakt.tv/search/tmdb/976573?type=movie
2023-09-07 15:23:33,375 DEBUG[trakt.core]:method, url :: get, https://api-v2launch.trakt.tv/search/tmdb/976573?type=movie
2023-09-07 15:23:33,376 DEBUG[requests_cache.policy.actions]:Cache directives from request headers: CacheDirectives()
2023-09-07 15:23:33,376 DEBUG[requests_cache.policy.actions]:Pre-read cache checks: Passed
2023-09-07 15:23:33,377 DEBUG[requests_cache.policy.actions]:Post-read cache actions: CacheActions(expire_after=-1)
2023-09-07 15:23:33,377 DEBUG[trakt.core]:RESPONSE [get] (https://api-v2launch.trakt.tv/search/tmdb/976573?type=movie): <CachedResponse [200]: created: 2023-09-07 11:07:51 CEST, expires: 2023-09-07 19:07:51 CEST (fresh), size: 154 bytes, request: GET https://api-v2launch.trakt.tv/search/tmdb/976573?type=movie>
2023-09-07 15:23:33,378 DEBUG[trakt.core]:get: https://api-v2launch.trakt.tv/users/g4zz0l1/watchlist/movies
2023-09-07 15:23:33,378 DEBUG[trakt.core]:method, url :: get, https://api-v2launch.trakt.tv/users/g4zz0l1/watchlist/movies
2023-09-07 15:23:33,378 DEBUG[requests_cache.policy.actions]:Cache directives from request headers: CacheDirectives()
2023-09-07 15:23:33,378 DEBUG[requests_cache.policy.expiration]:URL https://api-v2launch.trakt.tv/users/g4zz0l1/watchlist/movies matched pattern "*.trakt.tv/users/*/watchlist/movies": 0:00:01
2023-09-07 15:23:33,378 DEBUG[requests_cache.policy.actions]:Pre-read cache checks: Passed
2023-09-07 15:23:33,382 DEBUG[requests_cache.policy.actions]:Post-read cache actions: CacheActions(expire_after=datetime.timedelta(seconds=1), send_request=True)
2023-09-07 15:23:34,060 DEBUG[urllib3.connectionpool]:https://api-v2launch.trakt.tv:443 "GET /users/g4zz0l1/watchlist/movies HTTP/1.1" 304 0
2023-09-07 15:23:34,060 DEBUG[requests_cache.policy.actions]:Cache directives from response headers: CacheDirectives(max_age=0, must_revalidate=True, etag='W/"bb6c009d6e29d3f1dd6d602af5674833"', last_modified='Thu, 07 Sep 2023 00:23:55 GMT')
2023-09-07 15:23:34,060 DEBUG[requests_cache.policy.actions]:Pre-write cache checks: disabled status
2023-09-07 15:23:34,060 DEBUG[requests_cache.policy.actions]:Response for URL https://api-v2launch.trakt.tv/users/g4zz0l1/watchlist/movies has not been modified
2023-09-07 15:23:34,082 DEBUG[trakt.core]:RESPONSE [get] (https://api-v2launch.trakt.tv/users/g4zz0l1/watchlist/movies): <CachedResponse [200]: created: 2023-09-07 12:04:59 CEST, expires: 2023-09-07 15:23:34 CEST (stale), size: 1.24 MiB, request: GET https://api-v2launch.trakt.tv/users/g4zz0l1/watchlist/movies>
2023-09-07 15:23:34,152 DEBUG[trakt.core]:get: https://api-v2launch.trakt.tv/users/g4zz0l1/watchlist/shows
2023-09-07 15:23:34,152 DEBUG[trakt.core]:method, url :: get, https://api-v2launch.trakt.tv/users/g4zz0l1/watchlist/shows
2023-09-07 15:23:34,153 DEBUG[requests_cache.policy.actions]:Cache directives from request headers: CacheDirectives()
2023-09-07 15:23:34,153 DEBUG[requests_cache.policy.expiration]:URL https://api-v2launch.trakt.tv/users/g4zz0l1/watchlist/shows matched pattern "*.trakt.tv/users/*/watchlist/shows": 0:00:01
2023-09-07 15:23:34,153 DEBUG[requests_cache.policy.actions]:Pre-read cache checks: Passed
2023-09-07 15:23:34,154 DEBUG[requests_cache.policy.actions]:Post-read cache actions: CacheActions(expire_after=datetime.timedelta(seconds=1), send_request=True)
2023-09-07 15:23:34,625 DEBUG[urllib3.connectionpool]:https://api-v2launch.trakt.tv:443 "GET /users/g4zz0l1/watchlist/shows HTTP/1.1" 304 0
2023-09-07 15:23:34,626 DEBUG[requests_cache.policy.actions]:Cache directives from response headers: CacheDirectives(max_age=0, must_revalidate=True, etag='W/"bb6c009d6e29d3f1dd6d602af5674833"', last_modified='Thu, 07 Sep 2023 00:23:55 GMT')
2023-09-07 15:23:34,626 DEBUG[requests_cache.policy.actions]:Pre-write cache checks: disabled status
2023-09-07 15:23:34,626 DEBUG[requests_cache.policy.actions]:Response for URL https://api-v2launch.trakt.tv/users/g4zz0l1/watchlist/shows has not been modified
2023-09-07 15:23:34,638 DEBUG[trakt.core]:RESPONSE [get] (https://api-v2launch.trakt.tv/users/g4zz0l1/watchlist/shows): <CachedResponse [200]: created: 2023-09-07 12:05:00 CEST, expires: 2023-09-07 15:23:34 CEST (stale), size: 189.20 KiB, request: GET https://api-v2launch.trakt.tv/users/g4zz0l1/watchlist/shows>
2023-09-07 15:23:34,654 DEBUG[plexapi]:GET https://metadata.provider.plex.tv/library/search 
2023-09-07 15:23:34,655 DEBUG[requests_cache.policy.actions]:Cache directives from request headers: CacheDirectives()
2023-09-07 15:23:34,655 DEBUG[requests_cache.policy.expiration]:URL https://metadata.provider.plex.tv/library/search?query=The+Boss+Baby&limit=30&searchTypes=movies&includeMetadata=1 matched pattern "metadata.provider.plex.tv/library/search?query=*&searchTypes=movies&includeMetadata=1": 1:00:00
2023-09-07 15:23:34,655 DEBUG[requests_cache.policy.actions]:Pre-read cache checks: Passed
2023-09-07 15:23:34,655 DEBUG[requests_cache.policy.actions]:Post-read cache actions: CacheActions(expire_after=datetime.timedelta(seconds=3600), send_request=True)
2023-09-07 15:23:34,930 DEBUG[urllib3.connectionpool]:https://metadata.provider.plex.tv:443 "GET /library/search?query=The+Boss+Baby&limit=30&searchTypes=movies&includeMetadata=1 HTTP/1.1" 404 None
2023-09-07 15:23:34,931 DEBUG[requests_cache.policy.actions]:Cache directives from response headers: CacheDirectives(max_age=0, stale_while_revalidate=180, etag='W/"46-1Pj4Xl1exTAmpCsA7Uz2GlAh51I"')
2023-09-07 15:23:34,931 DEBUG[requests_cache.policy.actions]:Pre-write cache checks: disabled status
2023-09-07 15:23:34,931 DEBUG[requests_cache.session]:Skipping cache write for URL: https://metadata.provider.plex.tv/library/search?query=The+Boss+Baby&limit=30&searchTypes=movies&includeMetadata=1
2023-09-07 15:23:34,931 DEBUG[plexapi]:GET https://metadata.provider.plex.tv/library/search 
2023-09-07 15:23:34,932 DEBUG[requests_cache.policy.actions]:Cache directives from request headers: CacheDirectives()
2023-09-07 15:23:34,932 DEBUG[requests_cache.policy.expiration]:URL https://metadata.provider.plex.tv/library/search?query=Trolls&limit=30&searchTypes=movies&includeMetadata=1 matched pattern "metadata.provider.plex.tv/library/search?query=*&searchTypes=movies&includeMetadata=1": 1:00:00
2023-09-07 15:23:34,932 DEBUG[requests_cache.policy.actions]:Pre-read cache checks: Passed
2023-09-07 15:23:34,933 DEBUG[requests_cache.policy.actions]:Post-read cache actions: CacheActions(expire_after=datetime.timedelta(seconds=3600), send_request=True)
2023-09-07 15:23:35,176 DEBUG[urllib3.connectionpool]:https://metadata.provider.plex.tv:443 "GET /library/search?query=Trolls&limit=30&searchTypes=movies&includeMetadata=1 HTTP/1.1" 404 None
2023-09-07 15:23:35,177 DEBUG[requests_cache.policy.actions]:Cache directives from response headers: CacheDirectives(max_age=0, stale_while_revalidate=180, etag='W/"46-1Pj4Xl1exTAmpCsA7Uz2GlAh51I"')
2023-09-07 15:23:35,177 DEBUG[requests_cache.policy.actions]:Pre-write cache checks: disabled status
2023-09-07 15:23:35,177 DEBUG[requests_cache.session]:Skipping cache write for URL: https://metadata.provider.plex.tv/library/search?query=Trolls&limit=30&searchTypes=movies&includeMetadata=1
2023-09-07 15:23:35,177 DEBUG[plexapi]:GET https://metadata.provider.plex.tv/library/search 
2023-09-07 15:23:35,178 DEBUG[requests_cache.policy.actions]:Cache directives from request headers: CacheDirectives()
2023-09-07 15:23:35,178 DEBUG[requests_cache.policy.expiration]:URL https://metadata.provider.plex.tv/library/search?query=xXx%3A+Return+of+Xander+Cage&limit=30&searchTypes=movies&includeMetadata=1 matched pattern "metadata.provider.plex.tv/library/search?query=*&searchTypes=movies&includeMetadata=1": 1:00:00
2023-09-07 15:23:35,179 DEBUG[requests_cache.policy.actions]:Pre-read cache checks: Passed
2023-09-07 15:23:35,179 DEBUG[requests_cache.policy.actions]:Post-read cache actions: CacheActions(expire_after=datetime.timedelta(seconds=3600), send_request=True)
2023-09-07 15:23:35,466 DEBUG[urllib3.connectionpool]:https://metadata.provider.plex.tv:443 "GET /library/search?query=xXx%3A+Return+of+Xander+Cage&limit=30&searchTypes=movies&includeMetadata=1 HTTP/1.1" 404 None
2023-09-07 15:23:35,466 DEBUG[requests_cache.policy.actions]:Cache directives from response headers: CacheDirectives(max_age=0, stale_while_revalidate=180, etag='W/"46-1Pj4Xl1exTAmpCsA7Uz2GlAh51I"')
2023-09-07 15:23:35,466 DEBUG[requests_cache.policy.actions]:Pre-write cache checks: disabled status
2023-09-07 15:23:35,466 DEBUG[requests_cache.session]:Skipping cache write for URL: https://metadata.provider.plex.tv/library/search?query=xXx%3A+Return+of+Xander+Cage&limit=30&searchTypes=movies&includeMetadata=1
2023-09-07 15:23:35,467 DEBUG[plexapi]:GET https://metadata.provider.plex.tv/library/search 
2023-09-07 15:23:35,468 DEBUG[requests_cache.policy.actions]:Cache directives from request headers: CacheDirectives()
2023-09-07 15:23:35,468 DEBUG[requests_cache.policy.expiration]:URL https://metadata.provider.plex.tv/library/search?query=Monster+Trucks&limit=30&searchTypes=movies&includeMetadata=1 matched pattern "metadata.provider.plex.tv/library/search?query=*&searchTypes=movies&includeMetadata=1": 1:00:00
2023-09-07 15:23:35,468 DEBUG[requests_cache.policy.actions]:Pre-read cache checks: Passed
2023-09-07 15:23:35,468 DEBUG[requests_cache.policy.actions]:Post-read cache actions: CacheActions(expire_after=datetime.timedelta(seconds=3600), send_request=True)
2023-09-07 15:23:35,717 DEBUG[urllib3.connectionpool]:https://metadata.provider.plex.tv:443 "GET /library/search?query=Monster+Trucks&limit=30&searchTypes=movies&includeMetadata=1 HTTP/1.1" 404 None
2023-09-07 15:23:35,717 DEBUG[requests_cache.policy.actions]:Cache directives from response headers: CacheDirectives(max_age=0, stale_while_revalidate=180, etag='W/"46-1Pj4Xl1exTAmpCsA7Uz2GlAh51I"')
2023-09-07 15:23:35,717 DEBUG[requests_cache.policy.actions]:Pre-write cache checks: disabled status
2023-09-07 15:23:35,717 DEBUG[requests_cache.session]:Skipping cache write for URL: https://metadata.provider.plex.tv/library/search?query=Monster+Trucks&limit=30&searchTypes=movies&includeMetadata=1
2023-09-07 15:23:35,718 DEBUG[plexapi]:GET https://metadata.provider.plex.tv/library/search 
2023-09-07 15:23:35,719 DEBUG[requests_cache.policy.actions]:Cache directives from request headers: CacheDirectives()
2023-09-07 15:23:35,719 DEBUG[requests_cache.policy.expiration]:URL https://metadata.provider.plex.tv/library/search?query=Pete%27s+Dragon&limit=30&searchTypes=movies&includeMetadata=1 matched pattern "metadata.provider.plex.tv/library/search?query=*&searchTypes=movies&includeMetadata=1": 1:00:00
2023-09-07 15:23:35,719 DEBUG[requests_cache.policy.actions]:Pre-read cache checks: Passed
2023-09-07 15:23:35,719 DEBUG[requests_cache.policy.actions]:Post-read cache actions: CacheActions(expire_after=datetime.timedelta(seconds=3600), send_request=True)
2023-09-07 15:23:35,979 DEBUG[urllib3.connectionpool]:https://metadata.provider.plex.tv:443 "GET /library/search?query=Pete%27s+Dragon&limit=30&searchTypes=movies&includeMetadata=1 HTTP/1.1" 404 None
2023-09-07 15:23:35,980 DEBUG[requests_cache.policy.actions]:Cache directives from response headers: CacheDirectives(max_age=0, stale_while_revalidate=180, etag='W/"46-1Pj4Xl1exTAmpCsA7Uz2GlAh51I"')
2023-09-07 15:23:35,980 DEBUG[requests_cache.policy.actions]:Pre-write cache checks: disabled status
2023-09-07 15:23:35,980 DEBUG[requests_cache.session]:Skipping cache write for URL: https://metadata.provider.plex.tv/library/search?query=Pete%27s+Dragon&limit=30&searchTypes=movies&includeMetadata=1
2023-09-07 15:23:35,980 DEBUG[plexapi]:GET https://metadata.provider.plex.tv/library/search 
2023-09-07 15:23:35,982 DEBUG[requests_cache.policy.actions]:Cache directives from request headers: CacheDirectives()
[...]

Expected behavior

I expect it to sync as per the config file.

Steps to reproduce the behavior

  1. docker-compose run --rm plextraktsync sync

Inspect of problematic items

No response

Workarounds

No response

Install method

docker-compose

Config file contents

cache:
  path: $PTS_CACHE_DIR/trakt_cache
config:
  dotenv_override: true
plex:
  timeout: 30
logging:
  append: true
  console_time: true
  debug: true
  filename: plextraktsync.log
  filter_loggers:
  filter:
    - level: WARNING
      message: "not found on Trakt"
    - level: WARNING
      message: "because provider local has no external Id"
    - level: INFO
      message: "from Trakt watchlist because not found in Plex Discover"
sync:
  plex_to_trakt:
    collection: false
    clear_collected: false
    ratings: false
    watched_status: false
    watchlist: false
  trakt_to_plex:
    liked_lists: false
    ratings: false
    watched_status: true
    watchlist: true
    watchlist_as_playlist: false
  rating_priority: none
watch:
  add_collection: false
  remove_collection: false
  scrobble_threshold: 80
  username_filter: true
  media_progressbar: false
xbmc-providers:
  movies: tmdb
  shows: tvdb

Version

0.27.3

Python Version

the version inside the docker image

Operating System and Version

Arch Linux

@SebbeJohansson
Copy link
Contributor

SebbeJohansson commented Sep 8, 2023

Im having a similar issue when trying to sync watchlist from trakt to plex.
Here is the raw output from the sync command:

Processing Plex watchlist 100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2/2  [ 0:00:01 < 0:00:00 , 16 it/s ]
INFO     Skipping Aquaman and the Lost Kingdom (2023) from Trakt watchlist because not found in Plex Discover
INFO     Skipping The Report (2019) from Trakt watchlist because not found in Plex Discover
INFO     Skipping American History X (1998) from Trakt watchlist because not found in Plex Discover
INFO     Skipping Alice Through the Looking Glass (2016) from Trakt watchlist because not found in Plex Discover
INFO     Skipping Sing 2 (2021) from Trakt watchlist because not found in Plex Discover
INFO     Skipping The Help (2011) from Trakt watchlist because not found in Plex Discover
INFO     Skipping The Dirt (2019) from Trakt watchlist because not found in Plex Discover
INFO     Skipping The Flash (2023) from Trakt watchlist because not found in Plex Discover
INFO     Skipping Prisoners (2013) from Trakt watchlist because not found in Plex Discover
INFO     Skipping Tom & Jerry (2021) from Trakt watchlist because not found in Plex Discover
INFO     Skipping Now You See Me 3 (None) from Trakt watchlist because not found in Plex Discover
INFO     Skipping Pan's Labyrinth (2006) from Trakt watchlist because not found in Plex Discover
INFO     Skipping A Bad Moms Christmas (2017) from Trakt watchlist because not found in Plex Discover
INFO     Skipping The Cabin in the Woods (2012) from Trakt watchlist because not found in Plex Discover
INFO     Skipping I Lost My Body (2019) from Trakt watchlist because not found in Plex Discover
INFO     Skipping Roald Dahl's The Witches (2020) from Trakt watchlist because not found in Plex Discover
INFO     Skipping Snatch (2000) from Trakt watchlist because not found in Plex Discover
INFO     Skipping Lu Over the Wall (2017) from Trakt watchlist because not found in Plex Discover
INFO     Skipping Rent (2005) from Trakt watchlist because not found in Plex Discover
INFO     Skipping The Gold of Naples (1954) from Trakt watchlist because not found in Plex Discover
[...]

My config:

cache:
  path: $PTS_CACHE_DIR/trakt_cache

excluded-libraries:
  - Private
  - Family Holidays

config:
  dotenv_override: true

plex:
  timeout: 30

logging:
  --[[shorted]]--

# settings for 'sync' command (default)
sync:
  plex_to_trakt:
    collection: false
    # Clear collected state of items not present in Plex
    clear_collected: false
    ratings: false
    watched_status: false
    # If plex_to_trakt watchlist=false and trakt_to_plex watchlist=true
    # the Plex watchlist will be overwritten by Trakt watchlist
    watchlist: false
  trakt_to_plex:
    liked_lists: false
    ratings: true
    watched_status: true
    # If trakt_to_plex watchlist=false and plex_to_trakt watchlist=true
    # the Trakt watchlist will be overwritten by Plex watchlist
    watchlist: true
    # If you prefer to fetch trakt watchlist as a playlist instead of
    # plex watchlist, toggle this to true (is read only if watchlist=true)
    watchlist_as_playlist: false
  rating_priority: trakt

# settings for 'watch' command
watch:
  --[[shorted]]--

xbmc-providers:
  movies: tmdb
  shows: tmdb

For example "Snatched" shows up in the list of movies that wasnt able to be found, but it shows up here:
image

Syncing ratings and "watched" works fine.

@simonc56
Copy link
Collaborator

simonc56 commented Sep 9, 2023

Plex updated the search url, old one returns 404 Not found.
We'll have to wait for plexapi update :

@SebbeJohansson
Copy link
Contributor

@twolaw just to be clear, doing that normal sync command works. But the watchlist modifier does not. maybe the "full" one uses some other kind of search?

@simonc56 simonc56 self-assigned this Sep 13, 2023
@simonc56 simonc56 added the bug Something isn't working label Sep 13, 2023
@simonc56 simonc56 linked a pull request Sep 18, 2023 that will close this issue
@G4Zz0L1
Copy link
Author

G4Zz0L1 commented Sep 20, 2023

It doesn't seems to be fixed yet, with a full watchlist sync on version 0.27.5 it returns the same lines as before and skips everything.

@simonc56
Copy link
Collaborator

The fix is in version 0.27.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
3 participants