mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Added-Fix HTTP Playback
Added additional prompt when using auto-detect.
This commit is contained in:
parent
8956ee8451
commit
90204fcd05
2 changed files with 12 additions and 2 deletions
|
@ -122,13 +122,22 @@ class ConnectionManager():
|
||||||
|
|
||||||
if(return_value > -1):
|
if(return_value > -1):
|
||||||
selected_user = userList[return_value]
|
selected_user = userList[return_value]
|
||||||
self.logMsg("Setting Selected User: %s" % selected_user)
|
self.logMsg("Selected User: %s" % selected_user)
|
||||||
self.addon.setSetting("username", selected_user)
|
self.addon.setSetting("username", selected_user)
|
||||||
return
|
|
||||||
else:
|
else:
|
||||||
xbmc.log("No user selected.")
|
xbmc.log("No user selected.")
|
||||||
xbmc.executebuiltin('Addon.OpenSettings(%s)' % self.addonId)
|
xbmc.executebuiltin('Addon.OpenSettings(%s)' % self.addonId)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
# Option to play from http
|
||||||
|
setPlayback = xbmcgui.Dialog().yesno("Playback option", "Play your files using HTTP?")
|
||||||
|
if setPlayback == 1:
|
||||||
|
self.logMsg("Playback will be set using HTTP/S.", 1)
|
||||||
|
addon.setSetting("playFromStream", "true")
|
||||||
|
return
|
||||||
|
else:
|
||||||
|
self.logMsg("Playback will be set using SMB.", 1)
|
||||||
|
return
|
||||||
|
|
||||||
def getServerDetails(self):
|
def getServerDetails(self):
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
<category label="Playback"> <!-- Extra Sync options -->
|
<category label="Playback"> <!-- Extra Sync options -->
|
||||||
<setting id="smbusername" type="text" label="30007" default="" visible="true" enable="true" />
|
<setting id="smbusername" type="text" label="30007" default="" visible="true" enable="true" />
|
||||||
<setting id="smbpassword" type="text" label="30008" default="" option="hidden" visible="true" enable="true" />
|
<setting id="smbpassword" type="text" label="30008" default="" option="hidden" visible="true" enable="true" />
|
||||||
|
<setting id="playFromStream" type="bool" label="30002" visible="true" enable="true" value="false" />
|
||||||
<setting id="autoPlaySeason" type="bool" label="30216" default="false" visible="true" enable="true" />
|
<setting id="autoPlaySeason" type="bool" label="30216" default="false" visible="true" enable="true" />
|
||||||
</category>
|
</category>
|
||||||
<category label="30022">
|
<category label="30022">
|
||||||
|
|
Loading…
Reference in a new issue