TraktApi: Cleanup unused trakt_batch
MODIFY
plextraktsync/trakt/TraktApi.py
plextraktsync/trakt/TraktApi.py
from plextraktsync.plex.PlexGuid import PlexGuid
from plextraktsync.plex.PlexLibraryItem import PlexLibraryItem
- from plextraktsync.trakt.TraktBatch import TraktBatch
class TraktApi:
@@ -46,22 +45,6 @@ def device_auth(client_id: str, client_secret: str):
return trakt.init(client_id=client_id, client_secret=client_secret, store=True)
- @cached_property
- def batch_collection_add(self):
- return self.trakt_batch("collection", add=True)
-
- @cached_property
- def batch_collection_del(self):
- return self.trakt_batch("collection", add=False)
-
- @cached_property
- def batch_watchlist_add(self):
- return self.trakt_batch("watchlist", add=True)
-
- @cached_property
- def batch_watchlist_del(self):
- return self.trakt_batch("watchlist", add=False)
-
@cached_property
@rate_limit()
@retry()
@@ -293,7 +276,3 @@ def find_episode_guid(self, guid: PlexGuid, lookup: TraktLookup):
@cached_property
def queue(self):
return factory.queue
-
- @staticmethod
- def trakt_batch(*args, **kwargs) -> TraktBatch:
- return factory.trakt_batch(*args, **kwargs)

TraktApi: Cleanup unused trakt_batch