@@ -92,7 +92,6 @@ def __init__(self, plugin_handle, bu='srf', addon_id=ADDON_ID):
9292
9393 # Plugin options:
9494 self .debug = self .get_boolean_setting ('Enable_Debugging' )
95- self .subtitles = self .get_boolean_setting ('Extract_Subtitles' )
9695 self .prefer_hd = self .get_boolean_setting ('Prefer_HD' )
9796
9897 # Delete temporary subtitle files urn*.vtt
@@ -790,7 +789,7 @@ def build_entry(self, json_entry, is_folder=False,
790789
791790 subs = utils .try_get (
792791 json_entry , 'subtitleList' , data_type = list , default = [])
793- if subs and self . subtitles :
792+ if subs :
794793 subtitle_list = [
795794 utils .try_get (x , 'url' ) for x in subs
796795 if utils .try_get (x , 'format' ) == 'VTT' ]
@@ -1176,10 +1175,9 @@ def play_video(self, media_id_or_urn):
11761175 auth_url = surl_result .geturl ()
11771176 self .log (f'play_video, auth_url = { auth_url } ' )
11781177 play_item = xbmcgui .ListItem (title , path = auth_url )
1179- if self .subtitles :
1180- subs = self .get_subtitles (stream_url , urn )
1181- if subs :
1182- play_item .setSubtitles (subs )
1178+ subs = self .get_subtitles (stream_url , urn )
1179+ if subs :
1180+ play_item .setSubtitles (subs )
11831181
11841182 play_item .setProperty ('inputstream' , 'inputstream.adaptive' )
11851183 play_item .setProperty ('inputstream.adaptive.manifest_type' , mf_type )
0 commit comments