Add media_type property
This is to map imdb type tvSeries to trakt type show
from os import PathLike
from plextraktsync.console import print
+from plextraktsync.decorators.cached_property import cached_property
from plextraktsync.factory import factory
@@ -38,6 +39,13 @@ class Ratings:
# 'Directors': 'directors',
}
+ @cached_property
+ def media_type(self):
+ if self.type == "tvSeries":
+ return "show"
+
+ return self.type
+
@staticmethod
def from_csv(row):
mapping = Ratings.FIELD_MAPPING
