Deprecate .guid wrapper access
from plexapi.library import MovieSection, ShowSection, LibrarySection
from plexapi.server import PlexServer
+from plex_trakt_sync.decorators.deprecated import deprecated
from plex_trakt_sync.decorators.memoize import memoize
from plex_trakt_sync.decorators.nocache import nocache
from plex_trakt_sync.config import CONFIG
@@ -127,21 +128,25 @@ def type(self):
@property
@memoize
+ @deprecated("Use .guid.provider directly")
def provider(self):
return self.guid.provider
@property
@memoize
+ @deprecated("Use .guid.id directly")
def id(self):
return self.guid.id
@property
@memoize
+ @deprecated("Use .guid.is_episode directly")
def is_episode(self):
return self.guid.is_episode
@property
@memoize
+ @deprecated("Use .guid.show_id directly")
def show_id(self):
return self.guid.show_id
