mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-08-24 08:21:34 +00:00
add api_key to streaming urls
This commit is contained in:
parent
7a9bbcc708
commit
5322058652
3 changed files with 15 additions and 1 deletions
|
@ -53,6 +53,11 @@ class DownloadUtils(object):
|
|||
|
||||
log.debug("Set info for server %s: %s", self.session['ServerId'], self.session)
|
||||
|
||||
def get_token(self):
|
||||
user = self._get_session_info()
|
||||
token = user['Token']
|
||||
return token
|
||||
|
||||
def add_server(self, server, ssl):
|
||||
# Reserved for userclient only
|
||||
server_id = server['Id']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue