TraktApi: Deprecate remove_from_library method
MODIFY
plextraktsync/trakt/TraktApi.py
plextraktsync/trakt/TraktApi.py
import trakt.movies
import trakt.sync
import trakt.users
+from deprecated import deprecated
from trakt.errors import ForbiddenException, OAuthException
from plextraktsync import pytrakt_extensions
@@ -84,11 +85,9 @@ def movie_collection(self):
def show_collection(self):
return self.me.show_collection
- @rate_limit()
- @time_limit()
- @retry()
+ @deprecated("Use remove_from_collection")
def remove_from_library(self, media: TraktMedia):
- media.remove_from_library()
+ self.remove_from_collection(media)
def remove_from_collection(self, m: TraktMedia):
if m.media_type in ["movies", "shows"]:

TraktApi: Deprecate remove_from_library method