Update set_show to take Media argument
MODIFY
plex_trakt_sync/commands/sync.py
plex_trakt_sync/commands/sync.py
@@ -127,7 +127,7 @@ def for_each_show_episode(m: Media, mf: MediaFactory):
if not me:
continue
- me.set_show(m.plex, m.trakt)
+ me.set_show(m)
yield me

MODIFY
plex_trakt_sync/media.py
plex_trakt_sync/media.py
@@ -23,10 +23,8 @@ def plex(self):
def trakt(self):
return self.tm
- def set_show(self, ps, ts):
- self.show = Media(ps, ts)
-
- return self.show
+ def set_show(self, show):
+ self.show = show
class MediaFactory:

Update set_show to take Media argument