Merge pull request #530 from venomousZealot/patch-1

Fix impossibility of choosing the first subtitle
This commit is contained in:
mcarlton00 2021-05-17 17:09:49 -04:00 committed by GitHub
commit 59eafe5192
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -633,8 +633,8 @@ class PlayUtils(object):
selection = list(['No subtitles']) + list(map(get_track_title, subs_streams))
resp = dialog("select", translate(33014), selection) - 1
if resp:
index = subs_streams[resp] if resp > -1 else source.get('DefaultSubtitleStreamIndex')
if resp > -1:
index = subs_streams[resp]
if index is not None: