FIX: max channels for video

This commit is contained in:
Chris Browet 2022-03-06 15:41:04 +01:00
parent 34a2f44293
commit 860ebb9fbf

View file

@ -233,7 +233,7 @@ class JellyfinDevice(object):
""" Represents properties of an Jellyfin Device. """ """ Represents properties of an Jellyfin Device. """
def __init__(self, session, jf_manager): def __init__(self, session, jf_manager):
"""Initialize Emby device object.""" """Initialize Jellyfin device object."""
self.jf_manager = jf_manager self.jf_manager = jf_manager
self.is_active = True self.is_active = True
self.update_session(session) self.update_session(session)
@ -1158,7 +1158,7 @@ class JellyfinClientManager(object):
"Protocol": "http", "Protocol": "http",
"AudioCodec": "aac,mp3,opus,flac,vorbis", "AudioCodec": "aac,mp3,opus,flac,vorbis",
"VideoCodec": "h264,mpeg4,mpeg2video", "VideoCodec": "h264,mpeg4,mpeg2video",
"MaxAudioChannels": "2", "MaxAudioChannels": "6",
}, },
{"Container": "jpeg", "Type": "Photo"}, {"Container": "jpeg", "Type": "Photo"},
], ],
@ -1178,7 +1178,7 @@ class JellyfinClientManager(object):
"Container": "mp4,m4v", "Container": "mp4,m4v",
"AudioCodec": "aac,mp3,opus,flac,vorbis", "AudioCodec": "aac,mp3,opus,flac,vorbis",
"VideoCodec": "h264,mpeg4,mpeg2video", "VideoCodec": "h264,mpeg4,mpeg2video",
"MaxAudioChannels": "2", "MaxAudioChannels": "6",
}, },
], ],
"ResponseProfiles": [], "ResponseProfiles": [],