mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Convert dialog
This commit is contained in:
parent
938c7ce025
commit
d78b289a2b
2 changed files with 4 additions and 5 deletions
|
@ -9,12 +9,11 @@ from uuid import uuid4
|
||||||
|
|
||||||
import xbmc
|
import xbmc
|
||||||
import xbmcvfs
|
import xbmcvfs
|
||||||
import xbmcgui
|
|
||||||
|
|
||||||
import api
|
import api
|
||||||
import database
|
import database
|
||||||
import client
|
import client
|
||||||
from . import _, settings, window
|
from . import _, settings, window, dialog
|
||||||
from libraries import requests
|
from libraries import requests
|
||||||
from downloader import TheVoid
|
from downloader import TheVoid
|
||||||
from emby import Emby
|
from emby import Emby
|
||||||
|
@ -111,7 +110,7 @@ class PlayUtils(object):
|
||||||
for source in sources:
|
for source in sources:
|
||||||
selection.append(source.get('Name', "na"))
|
selection.append(source.get('Name', "na"))
|
||||||
|
|
||||||
resp = xbmcgui.Dialog().select(_(33130), selection)
|
resp = dialog("select", _(33130), selection)
|
||||||
if resp > -1:
|
if resp > -1:
|
||||||
source = sources[resp]
|
source = sources[resp]
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -85,8 +85,8 @@
|
||||||
<setting label="30004" id="logLevel" type="enum" values="Disabled|Info|Debug" default="1" />
|
<setting label="30004" id="logLevel" type="enum" values="Disabled|Info|Debug" default="1" />
|
||||||
<setting label="30529" id="startupDelay" type="number" default="0" option="int" />
|
<setting label="30529" id="startupDelay" type="number" default="0" option="int" />
|
||||||
<setting label="30239" type="action" action="RunPlugin(plugin://plugin.video.emby?mode=reset)" option="close" />
|
<setting label="30239" type="action" action="RunPlugin(plugin://plugin.video.emby?mode=reset)" option="close" />
|
||||||
<setting label="30535" type="action" action="RunPlugin(plugin://plugin.video.emby?mode=deviceid)" />
|
<setting label="30535" type="action" action="RunPlugin(plugin://plugin.video.emby?mode=deviceid)" option="close" />
|
||||||
<setting label="24034" type="action" action="RunPlugin(plugin://plugin.video.emby?mode=checkupdate)" />
|
<setting label="24034" type="action" action="RunPlugin(plugin://plugin.video.emby?mode=checkupdate)" option="close" />
|
||||||
|
|
||||||
<setting type="sep"/>
|
<setting type="sep"/>
|
||||||
<setting label="33104" type="lsep"/>
|
<setting label="33104" type="lsep"/>
|
||||||
|
|
Loading…
Reference in a new issue