mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 18:26:15 +00:00
fixed issue with recently added episodes Entry
support for Kodi 16 in entrypoints creation
This commit is contained in:
parent
9c639d47ca
commit
214dc1ed87
3 changed files with 4 additions and 6 deletions
|
@ -81,17 +81,17 @@ class Main:
|
||||||
|
|
||||||
##### GET NEXTUP EPISODES FOR TAGNAME #####
|
##### GET NEXTUP EPISODES FOR TAGNAME #####
|
||||||
elif "nextup" in mode:
|
elif "nextup" in mode:
|
||||||
limit = params['limit'][0]
|
limit = int(params['limit'][0])
|
||||||
entrypoint.getNextUpEpisodes(id, limit)
|
entrypoint.getNextUpEpisodes(id, limit)
|
||||||
|
|
||||||
##### GET INPROGRESS EPISODES FOR TAGNAME #####
|
##### GET INPROGRESS EPISODES FOR TAGNAME #####
|
||||||
elif "inprogressepisodes" in mode:
|
elif "inprogressepisodes" in mode:
|
||||||
limit = params['limit'][0]
|
limit = int(params['limit'][0])
|
||||||
entrypoint.getInProgressEpisodes(id, limit)
|
entrypoint.getInProgressEpisodes(id, limit)
|
||||||
|
|
||||||
##### GET RECENT EPISODES FOR TAGNAME #####
|
##### GET RECENT EPISODES FOR TAGNAME #####
|
||||||
elif "recentepisodes" in mode:
|
elif "recentepisodes" in mode:
|
||||||
limit = params['limit'][0]
|
limit = int(params['limit'][0])
|
||||||
entrypoint.getRecentEpisodes(id, limit)
|
entrypoint.getRecentEpisodes(id, limit)
|
||||||
|
|
||||||
##### GET EXTRAFANART FOR LISTITEM #####
|
##### GET EXTRAFANART FOR LISTITEM #####
|
||||||
|
|
|
@ -27,7 +27,6 @@ def doPlayback(id):
|
||||||
result = DownloadUtils().downloadUrl(url)
|
result = DownloadUtils().downloadUrl(url)
|
||||||
item = PlaybackUtils().PLAY(result, setup="default")
|
item = PlaybackUtils().PLAY(result, setup="default")
|
||||||
|
|
||||||
|
|
||||||
#### DO RESET AUTH #####
|
#### DO RESET AUTH #####
|
||||||
def resetAuth():
|
def resetAuth():
|
||||||
# User tried login and failed too many times
|
# User tried login and failed too many times
|
||||||
|
@ -640,7 +639,6 @@ def getExtraFanArt():
|
||||||
#always do endofdirectory to prevent errors in the logs
|
#always do endofdirectory to prevent errors in the logs
|
||||||
xbmcplugin.endOfDirectory(int(sys.argv[1]))
|
xbmcplugin.endOfDirectory(int(sys.argv[1]))
|
||||||
|
|
||||||
|
|
||||||
def addDirectoryItem(label, path, folder=True):
|
def addDirectoryItem(label, path, folder=True):
|
||||||
li = xbmcgui.ListItem(label, path=path)
|
li = xbmcgui.ListItem(label, path=path)
|
||||||
li.setThumbnailImage("special://home/addons/plugin.video.emby/icon.png")
|
li.setThumbnailImage("special://home/addons/plugin.video.emby/icon.png")
|
||||||
|
|
|
@ -30,7 +30,7 @@ class VideoNodes():
|
||||||
|
|
||||||
libraryPath = xbmc.translatePath("special://profile/library/video/Emby - %s/" %tagname)
|
libraryPath = xbmc.translatePath("special://profile/library/video/Emby - %s/" %tagname)
|
||||||
kodiVersion = 14
|
kodiVersion = 14
|
||||||
if xbmc.getInfoLabel("System.BuildVersion").startswith("15"):
|
if xbmc.getInfoLabel("System.BuildVersion").startswith("15") or xbmc.getInfoLabel("System.BuildVersion").startswith("16"):
|
||||||
kodiVersion = 15
|
kodiVersion = 15
|
||||||
|
|
||||||
#create tag node - index
|
#create tag node - index
|
||||||
|
|
Loading…
Reference in a new issue