Skip to content

Commit

Permalink
Fix info for direct play with password on network
Browse files Browse the repository at this point in the history
  • Loading branch information
xnappo committed May 28, 2015
1 parent 986a714 commit 6a0b9a4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addon.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.emby"
name="Emby"
version="0.1.93"
version="0.1.94"
provider-name="Emby.media">
<requires>
<import addon="xbmc.python" version="2.1.0"/>
Expand Down
8 changes: 7 additions & 1 deletion resources/lib/WriteKodiVideoDB.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,13 @@ def addOrUpdateTvShowToKodiLibrary( self, embyId, connection, cursor, viewTag ):

#create toplevel path as monitored source - needed for things like actors and stuff to work (no clue why)
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
path = utils.convertEncoding(playurl + "/")
toplevelpathstr = path.rsplit("/",2)[1]
Expand Down

0 comments on commit 6a0b9a4

Please sign in to comment.