From e907e357736fbe747d3e65a7c1c1409354b52123 Mon Sep 17 00:00:00 2001 From: venomousZealot Date: Mon, 17 May 2021 16:39:46 +0200 Subject: [PATCH] Fix impossibility of choosing the first subtitle The usual combination of a zero-based index and a lazy if... Also, there is no reason to use the default subtitles after asking users which subtitles they want. --- jellyfin_kodi/helper/playutils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jellyfin_kodi/helper/playutils.py b/jellyfin_kodi/helper/playutils.py index a674e183..d85f0dba 100644 --- a/jellyfin_kodi/helper/playutils.py +++ b/jellyfin_kodi/helper/playutils.py @@ -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: