From bfa3b0f2da3ba0d17433580fcadc0dbb3cdba08a Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Mon, 19 Sep 2016 21:46:24 -0500 Subject: [PATCH] Automatically download external subs There's minimal impact for downloading external subs. Automatically download them if there's a language tag. --- resources/lib/playbackutils.py | 2 +- resources/settings.xml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/resources/lib/playbackutils.py b/resources/lib/playbackutils.py index 2fa703a2..0d7dfa76 100644 --- a/resources/lib/playbackutils.py +++ b/resources/lib/playbackutils.py @@ -266,7 +266,7 @@ class PlaybackUtils(): url = ("%s/Videos/%s/%s/Subtitles/%s/Stream.srt" % (self.server, itemid, itemid, index)) - if settings('downloadExternalSubs') == "true" and "Language" in stream: + if "Language" in stream: filename = "Stream.%s.srt" % stream['Language'] try: diff --git a/resources/settings.xml b/resources/settings.xml index 61d3a542..406eb16d 100644 --- a/resources/settings.xml +++ b/resources/settings.xml @@ -52,7 +52,6 @@ -