mirror of
https://github.com/jellyfin/jellycon.git
synced 2024-11-23 22:19:54 +00:00
dont show user select if a remote play action is triggered
This commit is contained in:
parent
88c95297ea
commit
cd3a443db6
@ -1100,6 +1100,9 @@ class PlaybackService(xbmc.Monitor):
|
||||
def screensaver_activated(self):
|
||||
log.debug("Screen Saver Activated")
|
||||
|
||||
home_screen = HomeWindow()
|
||||
home_screen.clearProperty("skip_select_user")
|
||||
|
||||
settings = xbmcaddon.Addon()
|
||||
stop_playback = settings.getSetting("stopPlaybackOnScreensaver") == 'true'
|
||||
|
||||
@ -1131,5 +1134,9 @@ class PlaybackService(xbmc.Monitor):
|
||||
settings = xbmcaddon.Addon()
|
||||
show_change_user = settings.getSetting('changeUserOnScreenSaver') == 'true'
|
||||
if show_change_user:
|
||||
home_screen = HomeWindow()
|
||||
skip_select_user = home_screen.getProperty("skip_select_user")
|
||||
if skip_select_user is not None and skip_select_user == "true":
|
||||
return
|
||||
xbmc.executebuiltin("RunScript(plugin.video.embycon,0,?mode=CHANGE_USER)")
|
||||
|
||||
|
@ -14,7 +14,7 @@ from .simple_logging import SimpleLogging
|
||||
from . import clientinfo
|
||||
from . import downloadutils
|
||||
from .json_rpc import json_rpc
|
||||
from .library_change_monitor import LibraryChangeMonitor
|
||||
from .kodi_utils import HomeWindow
|
||||
|
||||
log = SimpleLogging(__name__)
|
||||
|
||||
@ -76,6 +76,9 @@ class WebSocketClient(threading.Thread):
|
||||
command = data['PlayCommand']
|
||||
|
||||
if command == 'PlayNow':
|
||||
home_screen = HomeWindow()
|
||||
home_screen.setProperty("skip_select_user", "true")
|
||||
|
||||
startat = data.get('StartPositionTicks', 0)
|
||||
log.debug("WebSocket Message PlayNow: {0}", data)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user