mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Additional cleanup
This commit is contained in:
parent
46d16293d2
commit
1ae54a3e20
1 changed files with 1 additions and 5 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue