Fix theme media

This commit is contained in:
angelblue05 2018-01-09 19:41:04 -06:00
parent 1ec3b32919
commit 3f5b5fa107

View file

@ -208,6 +208,9 @@ class PlayUtils():
break
play_url = self.get_transcode_url(source) if transcode else self.get_direct_url(source)
user_token = downloadutils.DownloadUtils().get_token()
play_url += "&api_key=" + user_token
return play_url
@ -224,9 +227,6 @@ class PlayUtils():
if settings('enableExternalSubs') == "true":
self.set_external_subs(source, play_url)
user_token = downloadutils.DownloadUtils().get_token()
play_url += "&api_key=" + user_token
return play_url
def get_transcode_url(self, source):
@ -252,9 +252,6 @@ class PlayUtils():
# Select audio and subtitles
play_url += self.get_audio_subs(source)
user_token = downloadutils.DownloadUtils().get_token()
play_url += "&api_key=" + user_token
return play_url
def set_external_subs(self, source, play_url):