Print media details
MODIFY
plex_trakt_sync/commands/unmatched.py
plex_trakt_sync/commands/unmatched.py
@@ -30,4 +30,13 @@ def unmatched():
continue
for pm in failed:
- print(f"Failed: {pm}")
+ p = pm.item
+ print("=" * 80)
+ print(f"No match: {pm}: {p.key}")
+ print(f"Title: {p.title}")
+ print(f"Year: {p.year}")
+ print(f"Updated At: {p.updatedAt}")
+ for l in p.locations:
+ print(f"Location: {l}")
+
+ print("")

MODIFY
plex_trakt_sync/walker.py
plex_trakt_sync/walker.py
@@ -73,7 +73,7 @@ def find_movies(self):
continue
yield movie
- def find_episodes(self):
+ def get_plex_shows(self):
if not self.walk_shows:
return
@@ -82,7 +82,10 @@ def find_episodes(self):
else:
shows = self.media_from_sections(self.plex.show_sections(), self.library)
- for plex in shows:
+ yield from shows
+
+ def find_episodes(self):
+ for plex in self.get_plex_shows():
show = self.mf.resolve_any(plex)
if not show:
continue

Print media details