Closed DevYukine closed 6 months ago
Try downgrade, and give the exact version it got broken.
The code in trace doesn't match version you reported:
plextraktsync | │ /app/plextraktsync/media.py:222 in plex_rating │
plextraktsync | │ │
plextraktsync | │ 219 │ │
plextraktsync | │ 220 │ @cached_property │
plextraktsync | │ 221 │ def plex_rating(self): │
plextraktsync | │ ❱ 222 │ │ show_id = self.show.plex.item.ratingKey if self.media │
plextraktsync | │ self.plex.is_discover else None │
plextraktsync | │ 223 │ │ return self.plex.rating(show_id)
but the code at that version is:
try to. find out the id of problematic item. put try/catch around m.plex_rating
and log m
--- a/plextraktsync/sync.py
+++ b/plextraktsync/sync.py
@@ -122,7 +122,11 @@ def sync_ratings(self, m: Media, dry_run=False):
if not self.config.sync_ratings:
return
- if m.plex_rating is m.trakt_rating:
+ try:
+ if m.plex_rating is m.trakt_rating:
+ return
+ except AttributeError as e:
+ logger.error(f"{e} of {m}")
return
rating_priority = self.config["rating_priority"]
and when you have the id, do plextraktsync inspect
on it
I'm guessing this happens when the episode has no match in trakt. but I can't reproduce this.
yet another user who reported something, and disappeared to dust if extra questions are asked or debugging aid given.
closing as per: https://github.com/Taxel/PlexTraktSync/commit/c1311ca6e4cd26f9c0727e2a7bb7fc0b19d1bfa6
Confirmation
The problem
I'm running plextraktsync inside docker with a scheduler in a loop, i recently started to receive the error while syncing, i have a 2 way sync enabled.
Error trace / logs
Expected behavior
It should sync as usual and not error while syncing
Steps to reproduce the behavior
Inspect of problematic items
No response
Workarounds
It seems that when i disable trakt_to_plex ratings then it does sync without erroring so i assume it has something to do with that.
Install method
docker-compose
Config file contents
Version
0.28.7
Python Version
3.12.1
Plex Server Version
1.32.8.7639-fb6452ebf
Operating System and Version
alpine 3.19