Add well known map for audio channels
MODIFY
plex_trakt_sync/plex_api.py
plex_trakt_sync/plex_api.py
@@ -180,8 +180,14 @@ def audio_channels(self):
"""
Set to 1.0, 2.0, 2.1, 3.0, 3.1, 4.0, 4.1, 5.0, 5.1, 5.1.2, 5.1.4, 6.1, 7.1, 7.1.2, 7.1.4, 9.1, or 10.1
"""
+ map = {
+ 2: "2.0",
+ }
media = self.item.media[0]
- return media.audioChannels
+ try:
+ return map[media.audioChannels]
+ except KeyError:
+ return None
@property
@memoize

Add well known map for audio channels