From 3f5b5fa107867c14bea5b4cc30d4725d9d967cef Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Tue, 9 Jan 2018 19:41:04 -0600 Subject: [PATCH] Fix theme media --- resources/lib/playutils.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/resources/lib/playutils.py b/resources/lib/playutils.py index ea344d73..40bf9bd5 100644 --- a/resources/lib/playutils.py +++ b/resources/lib/playutils.py @@ -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):