Fix info for direct play with password on network
This commit is contained in:
parent
986a71461b
commit
6a0b9a4934
2 changed files with 8 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
<addon id="plugin.video.emby"
|
<addon id="plugin.video.emby"
|
||||||
name="Emby"
|
name="Emby"
|
||||||
version="0.1.93"
|
version="0.1.94"
|
||||||
provider-name="Emby.media">
|
provider-name="Emby.media">
|
||||||
<requires>
|
<requires>
|
||||||
<import addon="xbmc.python" version="2.1.0"/>
|
<import addon="xbmc.python" version="2.1.0"/>
|
||||||
|
|
|
@ -458,7 +458,13 @@ class WriteKodiVideoDB():
|
||||||
|
|
||||||
#create toplevel path as monitored source - needed for things like actors and stuff to work (no clue why)
|
#create toplevel path as monitored source - needed for things like actors and stuff to work (no clue why)
|
||||||
if addon.getSetting('useDirectPaths')=='true':
|
if addon.getSetting('useDirectPaths')=='true':
|
||||||
playurl = MBitem["Path"].replace("\\\\", "smb://").replace("\\", "/")
|
smbuser = addon.getSetting('smbusername')
|
||||||
|
smbpass = addon.getSetting('smbpassword')
|
||||||
|
# Network share
|
||||||
|
if smbuser:
|
||||||
|
playurl = MBitem["Path"].replace("\\\\", "smb://%s:%s@" % (smbuser, smbpass)).replace("\\", "/")
|
||||||
|
else:
|
||||||
|
playurl = MBitem["Path"].replace("\\\\", "smb://").replace("\\", "/")
|
||||||
#make sure that the path always ends with a slash
|
#make sure that the path always ends with a slash
|
||||||
path = utils.convertEncoding(playurl + "/")
|
path = utils.convertEncoding(playurl + "/")
|
||||||
toplevelpathstr = path.rsplit("/",2)[1]
|
toplevelpathstr = path.rsplit("/",2)[1]
|
||||||
|
|
Loading…
Reference in a new issue