mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Follow up for playback
This commit is contained in:
parent
8e3a22e0e8
commit
d69e474f3e
1 changed files with 0 additions and 13 deletions
13
service.py
13
service.py
|
@ -69,19 +69,6 @@ class Service():
|
|||
# Abort was requested while waiting. We should exit
|
||||
break
|
||||
|
||||
#detection that file needs to be playback
|
||||
if WINDOW.getProperty("GUIPLAY") != "":
|
||||
downloadUtils = DownloadUtils()
|
||||
id = WINDOW.getProperty("GUIPLAY")
|
||||
WINDOW.setProperty("GUIPLAY", "")
|
||||
WINDOW = xbmcgui.Window( 10000 )
|
||||
username = WINDOW.getProperty('currUser')
|
||||
userid = WINDOW.getProperty('userId%s' % username)
|
||||
server = WINDOW.getProperty('server%s' % username)
|
||||
url = "{server}/mediabrowser/Users/{UserId}/Items/%s?format=json&ImageTypeLimit=1" % id
|
||||
result = downloadUtils.downloadUrl(url)
|
||||
PlaybackUtils().PLAY(result)
|
||||
|
||||
if xbmc.Player().isPlaying():
|
||||
try:
|
||||
playTime = xbmc.Player().getTime()
|
||||
|
|
Loading…
Reference in a new issue