Add show property to Media
This is for finding "parent" in case of type episode
MODIFY
plex_trakt_sync/media.py
plex_trakt_sync/media.py
@@ -13,6 +13,7 @@ class Media:
def __init__(self, pm, tm):
self.pm = pm
self.tm = tm
+ self.show = None
@property
def plex(self):
@@ -22,6 +23,11 @@ def plex(self):
def trakt(self):
return self.tm
+ def set_show(self, ps, ts):
+ self.show = Media(ps, ts)
+
+ return self.show
+
class MediaFactory:
"""

Add show property to Media

This is for finding "parent" in case of type episode