Change factory.plex_audio_codec to property
MODIFY
plextraktsync/factory.py
plextraktsync/factory.py
@@ -110,7 +110,7 @@ def walk_config(self):
return wc
- @memoize
+ @cached_property
def plex_audio_codec(self):
from plextraktsync.plex_api import PlexAudioCodec

MODIFY
plextraktsync/plex_api.py
plextraktsync/plex_api.py
@@ -303,7 +303,7 @@ def audio_codec(self):
except (AttributeError, IndexError, TypeError, AssertionError):
return None
- return factory.plex_audio_codec().match(codec)
+ return factory.plex_audio_codec.match(codec)
@property
def resolution(self):

Change factory.plex_audio_codec to property