mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Fix theme media
This commit is contained in:
parent
1ec3b32919
commit
3f5b5fa107
1 changed files with 3 additions and 6 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue