replace \ with / before compare of old and new paths

The getPlayUrl forces all / so we need to make sure we are using that
This commit is contained in:
faush01 2015-03-30 16:13:27 +11:00
parent 69580c8ccd
commit e90a4a9d32

View file

@ -879,6 +879,7 @@ class WriteKodiDB():
oldFileName = utils.convertEncoding(oldFileName) oldFileName = utils.convertEncoding(oldFileName)
newFileName = utils.convertEncoding(newFileName) newFileName = utils.convertEncoding(newFileName)
# only perform changes if the path actually differs # only perform changes if the path actually differs
if oldFileName != newFileName: if oldFileName != newFileName:
@ -891,6 +892,8 @@ class WriteKodiDB():
cursor = connection.cursor( ) cursor = connection.cursor( )
utils.logMsg("MB3 Sync","setting filename in kodi db..." + fileType + ": " + str(id)) utils.logMsg("MB3 Sync","setting filename in kodi db..." + fileType + ": " + str(id))
#utils.logMsg("MB3 Sync","Old Name : " + oldFileName)
#utils.logMsg("MB3 Sync","New Name : " + newFileName)
try: try:
print oldFileName print oldFileName
except: except: