Add media_type property
This is to map imdb type tvSeries to trakt type show
MODIFY
plextraktsync/commands/imdb_import.py
plextraktsync/commands/imdb_import.py
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

Add media_type property

This is to map imdb type tvSeries to trakt type show