Follow up for playback

This commit is contained in:
angelblue05 2015-05-02 16:43:44 -05:00
parent 8e3a22e0e8
commit d69e474f3e

View file

@ -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()