Fix theme media

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

View file

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