mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-10-09 02:12:04 +00:00
playutils: Lint changes
Signed-off-by: Michal Chvíla <michal@chvila.sk>
This commit is contained in:
parent
43a7489e19
commit
2a4b4501b7
1 changed files with 6 additions and 4 deletions
|
@ -686,7 +686,10 @@ class PlayUtils(object):
|
||||||
if subtitle is not None:
|
if subtitle is not None:
|
||||||
subtitle_selected_index = subtitle
|
subtitle_selected_index = subtitle
|
||||||
|
|
||||||
elif skip_dialog in (Transcode.Enabled, Transcode.Subtitle) and subs_stream_indexes:
|
elif (
|
||||||
|
skip_dialog in (Transcode.Enabled, Transcode.Subtitle)
|
||||||
|
and subs_stream_indexes
|
||||||
|
):
|
||||||
selection = list(["No subtitles"]) + list(
|
selection = list(["No subtitles"]) + list(
|
||||||
map(get_track_title, subs_stream_indexes)
|
map(get_track_title, subs_stream_indexes)
|
||||||
)
|
)
|
||||||
|
@ -702,9 +705,8 @@ class PlayUtils(object):
|
||||||
server_settings = self.api_client.get_transcode_settings()
|
server_settings = self.api_client.get_transcode_settings()
|
||||||
stream = streams[subtitle_selected_index]
|
stream = streams[subtitle_selected_index]
|
||||||
|
|
||||||
if (
|
if stream["SupportsExternalStream"] and (
|
||||||
stream["SupportsExternalStream"]
|
stream["IsExternal"] or server_settings["EnableSubtitleExtraction"]
|
||||||
and (stream['IsExternal'] or server_settings["EnableSubtitleExtraction"])
|
|
||||||
):
|
):
|
||||||
self.info["SubtitleUrl"] = self.get_subtitles(
|
self.info["SubtitleUrl"] = self.get_subtitles(
|
||||||
source, stream, subtitle_selected_index
|
source, stream, subtitle_selected_index
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue