Fill m.show property for m.watched_on_trakt lookup
MODIFY
plex_trakt_sync/commands/inspect.py
plex_trakt_sync/commands/inspect.py
import click
from plex_trakt_sync.factory import factory
+from plex_trakt_sync.media import Media
from plex_trakt_sync.version import git_version_info
@@ -49,6 +50,12 @@ def inspect(input):
if not m:
return
+ # fetch show property for watched_on_trakt
+ if m.is_episode:
+ ps = plex.fetch_item(m.plex.item.grandparentRatingKey)
+ ms = mf.resolve_any(ps)
+ m.show = ms
+
print(f"Trakt: {m.trakt_url}")
print(f"Watched on Plex: {m.watched_on_plex}")
print(f"Warched on Trakt: {m.watched_on_trakt}")

Fill m.show property for m.watched_on_trakt lookup