mirror of
https://github.com/jellyfin/jellycon.git
synced 2024-11-23 14:09:55 +00:00
pep8 - monitors.py
This commit is contained in:
parent
8e10ff79b1
commit
c5f5834b64
@ -26,7 +26,11 @@ class ContextMonitor(threading.Thread):
|
|||||||
|
|
||||||
while not xbmc.Monitor().abortRequested() and not self.stop_thread:
|
while not xbmc.Monitor().abortRequested() and not self.stop_thread:
|
||||||
|
|
||||||
if xbmc.getCondVisibility("Window.IsActive(fullscreenvideo) | Window.IsActive(visualisation)"):
|
visibility_check = (
|
||||||
|
"Window.IsActive(fullscreenvideo) | "
|
||||||
|
"Window.IsActive(visualisation)"
|
||||||
|
)
|
||||||
|
if xbmc.getCondVisibility(visibility_check):
|
||||||
xbmc.sleep(1000)
|
xbmc.sleep(1000)
|
||||||
else:
|
else:
|
||||||
if xbmc.getCondVisibility("Window.IsVisible(contextmenu)"):
|
if xbmc.getCondVisibility("Window.IsVisible(contextmenu)"):
|
||||||
@ -37,7 +41,9 @@ class ContextMonitor(threading.Thread):
|
|||||||
show_menu(params)
|
show_menu(params)
|
||||||
|
|
||||||
container_id = xbmc.getInfoLabel("System.CurrentControlID")
|
container_id = xbmc.getInfoLabel("System.CurrentControlID")
|
||||||
item_id = xbmc.getInfoLabel("Container(" + str(container_id) + ").ListItem.Property(id)")
|
item_id = xbmc.getInfoLabel(
|
||||||
|
"Container({}).ListItem.Property(id)".format(container_id)
|
||||||
|
)
|
||||||
|
|
||||||
xbmc.sleep(100)
|
xbmc.sleep(100)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user