The collected_at value must be iso8601-formatted
from plexapi.video import Movie, Show
from plex_trakt_sync.decorators import memoize, nocache
from plex_trakt_sync.config import CONFIG
+from trakt.utils import timestamp
class PlexLibraryItem:
@@ -99,9 +100,10 @@ def __repr__(self):
def to_json(self):
return {
- "collected_at": self.collected_at,
+ "collected_at": timestamp(self.collected_at),
}
+
class PlexLibrarySection:
def __init__(self, section: LibrarySection):
self.section = section
