Additional cleanup

This commit is contained in:
venomousZealot 2021-05-05 14:05:27 +02:00 committed by GitHub
parent 46d16293d2
commit 1ae54a3e20
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -580,8 +580,6 @@ class PlayUtils(object):
if stream_type == 'Audio': if stream_type == 'Audio':
track = stream['DisplayTitle']
audio_streams.append(index) audio_streams.append(index)
elif stream_type == 'Subtitle': elif stream_type == 'Subtitle':
@ -593,15 +591,13 @@ class PlayUtils(object):
if not avail_for_extraction and not allow_burned_subs: if not avail_for_extraction and not allow_burned_subs:
continue continue
track = stream['DisplayTitle']
subs_streams.append(index) subs_streams.append(index)
skip_dialog = int(settings('skipDialogTranscode') or 0) skip_dialog = int(settings('skipDialogTranscode') or 0)
audio_selected = None audio_selected = None
def get_track_title(trackIndex): def get_track_title(trackIndex):
return streams[trackIndex]['DisplayTitle'] return streams[trackIndex]['DisplayTitle'] or ("Track %s" % trackIndex)
if audio: if audio:
audio_selected = audio audio_selected = audio