Deprecate .resolve method
MODIFY
plex_trakt_sync/media.py
plex_trakt_sync/media.py
from requests import RequestException, ReadTimeout
from trakt.errors import TraktException
+from plex_trakt_sync.decorators.deprecated import deprecated
from plex_trakt_sync.logging import logger
from plex_trakt_sync.plex_api import PlexLibraryItem, PlexApi, PlexGuid
from plex_trakt_sync.trakt_api import TraktApi
@@ -102,6 +103,7 @@ def resolve_any(self, pm: PlexLibraryItem, tm=None):
return m
return None
+ @deprecated("use resolve_any")
def resolve(self, pm: PlexLibraryItem, tm=None):
try:
guid = pm.guid

Deprecate .resolve method