mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-06-17 05:36:12 +00:00
Merge branch 'master' of https://github.com/MediaBrowser/Emby.Kodi
This commit is contained in:
commit
986a37455e
15 changed files with 1743 additions and 28 deletions
|
@ -17,6 +17,8 @@ from PlaybackUtils import PlaybackUtils
|
|||
from DownloadUtils import DownloadUtils
|
||||
from ReadEmbyDB import ReadEmbyDB
|
||||
from API import API
|
||||
from ItemInfo import ItemInfo
|
||||
from PersonInfo import PersonInfo
|
||||
|
||||
|
||||
##### Play items via plugin://plugin.video.emby/ #####
|
||||
|
@ -26,6 +28,29 @@ def doPlayback(id):
|
|||
item = PlaybackUtils().PLAY(result, setup="default")
|
||||
|
||||
|
||||
##### Show the item info window #####
|
||||
def showInfo(id):
|
||||
xbmcplugin.endOfDirectory(int(sys.argv[1]), cacheToDisc=False)
|
||||
addonSettings = xbmcaddon.Addon(id='plugin.video.emby')
|
||||
infoPage = ItemInfo("ItemInfo.xml", addonSettings.getAddonInfo('path'), "default", "720p")
|
||||
infoPage.setId(id)
|
||||
infoPage.doModal()
|
||||
del infoPage
|
||||
|
||||
|
||||
def showPersonInfo(id,basename):
|
||||
xbmcplugin.endOfDirectory(int(sys.argv[1]), cacheToDisc=False)
|
||||
addonSettings = xbmcaddon.Addon(id='plugin.video.emby')
|
||||
infoPage = PersonInfo("PersonInfo.xml", addonSettings.getAddonInfo('path'), "default", "720p")
|
||||
infoPage.setPersonName(basename)
|
||||
infoPage.doModal()
|
||||
|
||||
if(infoPage.showMovies == True):
|
||||
xbmc.log("RUNNING_PLUGIN: " + infoPage.pluginCastLink)
|
||||
xbmc.executebuiltin(infoPage.pluginCastLink)
|
||||
|
||||
del infoPage
|
||||
|
||||
#### DO RESET AUTH #####
|
||||
def resetAuth():
|
||||
# User tried login and failed too many times
|
||||
|
@ -405,4 +430,4 @@ def doMainListing():
|
|||
addDirectoryItem("Perform full resync", "plugin://plugin.video.emby/?mode=reset")
|
||||
|
||||
xbmcplugin.endOfDirectory(int(sys.argv[1]))
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue