mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
commit
033d29ede8
4 changed files with 14 additions and 13 deletions
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
<addon id="plugin.video.emby"
|
<addon id="plugin.video.emby"
|
||||||
name="Emby"
|
name="Emby"
|
||||||
version="4.0.0"
|
version="4.0.1"
|
||||||
provider-name="angelblue05">
|
provider-name="angelblue05">
|
||||||
<requires>
|
<requires>
|
||||||
<import addon="xbmc.python" version="2.25.0"/>
|
<import addon="xbmc.python" version="2.25.0"/>
|
||||||
|
@ -39,6 +39,7 @@
|
||||||
<news>
|
<news>
|
||||||
New stable release
|
New stable release
|
||||||
The wiki has been updated: https://github.com/MediaBrowser/plugin.video.emby/wiki
|
The wiki has been updated: https://github.com/MediaBrowser/plugin.video.emby/wiki
|
||||||
|
Small fixes
|
||||||
</news>
|
</news>
|
||||||
</extension>
|
</extension>
|
||||||
</addon>
|
</addon>
|
||||||
|
|
|
@ -215,17 +215,17 @@ class HTTP(object):
|
||||||
def _authorization(self, data):
|
def _authorization(self, data):
|
||||||
|
|
||||||
auth = "MediaBrowser "
|
auth = "MediaBrowser "
|
||||||
auth += "Client=%s, " % self.config['app.name']
|
auth += "Client=%s, " % self.config['app.name'].encode('utf-8')
|
||||||
auth += "Device=%s, " % self.config['app.device_name']
|
auth += "Device=%s, " % self.config['app.device_name'].encode('utf-8')
|
||||||
auth += "DeviceId=%s, " % self.config['app.device_id']
|
auth += "DeviceId=%s, " % self.config['app.device_id'].encode('utf-8')
|
||||||
auth += "Version=%s" % self.config['app.version']
|
auth += "Version=%s" % self.config['app.version'].encode('utf-8')
|
||||||
|
|
||||||
data['headers'].update({'Authorization': auth})
|
data['headers'].update({'Authorization': auth})
|
||||||
|
|
||||||
if self.config['auth.token']:
|
if self.config['auth.token']:
|
||||||
|
|
||||||
auth += ', UserId=%s' % self.config['auth.user_id']
|
auth += ', UserId=%s' % self.config['auth.user_id'].encode('utf-8')
|
||||||
data['headers'].update({'Authorization': auth, 'X-MediaBrowser-Token': self.config['auth.token']})
|
data['headers'].update({'Authorization': auth, 'X-MediaBrowser-Token': self.config['auth.token'].encode('utf-8')})
|
||||||
|
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
version = "171076028"
|
version = "171076029"
|
||||||
|
|
||||||
from movies import Movies
|
from movies import Movies
|
||||||
from musicvideos import MusicVideos
|
from musicvideos import MusicVideos
|
||||||
|
|
|
@ -320,11 +320,11 @@ add_musicvideo = """ INSERT INTO musicvideo(idMVideo,idFile, c00, c04, c05,
|
||||||
add_musicvideo_obj = [ "{MvideoId}","{FileId}","{Title}","{Runtime}","{Directors}","{Studio}","{Year}",
|
add_musicvideo_obj = [ "{MvideoId}","{FileId}","{Title}","{Runtime}","{Directors}","{Studio}","{Year}",
|
||||||
"{Plot}","{Album}","{Artists}","{Genre}","{Index}","{Premiere}"
|
"{Plot}","{Album}","{Artists}","{Genre}","{Index}","{Premiere}"
|
||||||
]
|
]
|
||||||
add_tvshow = """ INSERT INTO tvshow(idShow, c00, c01, c02, c04, c05, c08, c09, c12, c13, c14, c15)
|
add_tvshow = """ INSERT INTO tvshow(idShow, c00, c01, c02, c04, c05, c08, c09, c10, c12, c13, c14, c15)
|
||||||
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
||||||
"""
|
"""
|
||||||
add_tvshow_obj = [ "{ShowId}","{Title}","{Plot}","{Status}","{RatingId}","{Premiere}","{Genre}","{Title}",
|
add_tvshow_obj = [ "{ShowId}","{Title}","{Plot}","{Status}","{RatingId}","{Premiere}","{Genre}","{Title}",
|
||||||
"{Unique}","{Mpaa}","{Studio}","{SortTitle}"
|
"disintegrate browse bug", "{Unique}","{Mpaa}","{Studio}","{SortTitle}"
|
||||||
]
|
]
|
||||||
add_season = """ INSERT INTO seasons(idSeason, idShow, season)
|
add_season = """ INSERT INTO seasons(idSeason, idShow, season)
|
||||||
VALUES (?, ?, ?)
|
VALUES (?, ?, ?)
|
||||||
|
@ -446,12 +446,12 @@ update_musicvideo_obj = [ "{Title}","{Runtime}","{Directors}","{Studio}","
|
||||||
"{Artists}","{Genre}","{Index}","{Premiere}","{MvideoId}"
|
"{Artists}","{Genre}","{Index}","{Premiere}","{MvideoId}"
|
||||||
]
|
]
|
||||||
update_tvshow = """ UPDATE tvshow
|
update_tvshow = """ UPDATE tvshow
|
||||||
SET c00 = ?, c01 = ?, c02 = ?, c04 = ?, c05 = ?, c08 = ?, c09 = ?,
|
SET c00 = ?, c01 = ?, c02 = ?, c04 = ?, c05 = ?, c08 = ?, c09 = ?, c10 = ?,
|
||||||
c12 = ?, c13 = ?, c14 = ?, c15 = ?
|
c12 = ?, c13 = ?, c14 = ?, c15 = ?
|
||||||
WHERE idShow = ?
|
WHERE idShow = ?
|
||||||
"""
|
"""
|
||||||
update_tvshow_obj = [ "{Title}","{Plot}","{Status}","{RatingId}","{Premiere}","{Genre}","{Title}",
|
update_tvshow_obj = [ "{Title}","{Plot}","{Status}","{RatingId}","{Premiere}","{Genre}","{Title}",
|
||||||
"{Unique}","{Mpaa}","{Studio}","{SortTitle}","{ShowId}"
|
"disintegrate browse bug","{Unique}","{Mpaa}","{Studio}","{SortTitle}","{ShowId}"
|
||||||
]
|
]
|
||||||
update_tvshow_link = """ INSERT OR REPLACE INTO tvshowlinkpath(idShow, idPath)
|
update_tvshow_link = """ INSERT OR REPLACE INTO tvshowlinkpath(idShow, idPath)
|
||||||
VALUES (?, ?)
|
VALUES (?, ?)
|
||||||
|
|
Loading…
Reference in a new issue