only stop playback on screensaver activate if what is playing was started by EmbyCon

This commit is contained in:
faush01
2019-01-18 10:30:25 +11:00
parent 2b18f685ab
commit 9305d3aac8
3 changed files with 7 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.embycon"
name="EmbyCon"
version="1.8.1"
version="1.8.2"
provider-name="Team B">
<requires>
<import addon="xbmc.python" version="2.25.0"/>

View File

@@ -1045,8 +1045,12 @@ class PlaybackService(xbmc.Monitor):
if stop_playback:
player = xbmc.Player()
if player.isPlaying():
player.stop()
if player.isPlayingVideo():
log.debug("Screen Saver Activated : isPlayingVideo() = true")
play_data = get_playing_data(self.monitor.played_information)
if play_data:
log.debug("Screen Saver Activated : this is an EmbyCon item so stop it")
player.stop()
#xbmc.executebuiltin("Dialog.Close(selectdialog, true)")

View File

@@ -73,11 +73,6 @@ def getServerDetails():
def checkServer(force=False, change_user=False, notify=False):
log.debug("checkServer Called")
# stop any plaback
player = xbmc.Player()
if player.isPlaying():
player.stop()
settings = xbmcaddon.Addon()
server_url = ""
something_changed = False