Fix potentially telling wrong PMS to stop transcode

This commit is contained in:
croneter 2017-12-07 18:19:54 +01:00
parent e6a5b1c157
commit 18a5bcd7db

View file

@ -27,7 +27,7 @@ class Player(xbmc.Player):
currentFile = None currentFile = None
def __init__(self): def __init__(self):
self.doUtils = downloadutils.DownloadUtils().downloadUrl self.doUtils = downloadutils.DownloadUtils
xbmc.Player.__init__(self) xbmc.Player.__init__(self)
log.info("Started playback monitor.") log.info("Started playback monitor.")
@ -375,7 +375,7 @@ class Player(xbmc.Player):
# Stop transcoding # Stop transcoding
if playMethod == "Transcode": if playMethod == "Transcode":
log.info("Transcoding for %s terminating" % itemid) log.info("Transcoding for %s terminating" % itemid)
self.doUtils( self.doUtils().downloadUrl(
"{server}/video/:/transcode/universal/stop", "{server}/video/:/transcode/universal/stop",
parameters={'session': window('plex_client_Id')}) parameters={'session': window('plex_client_Id')})