2017-11-02, 22:50
Thanks , now it works
If someone find it and have some problems
1.
xbmcvfs.listdir
returns a list of arrays
on my List it was [[],["FILE1"]]
SO
2.
fileLocation=urllib.quote_plus(fileLocation)
quelle=xbmc.translatePath(os.path.join(type, fileLocation)).decode("utf-8")
quelle=xbmc.translatePath(os.path.join(quelle, FILE)).decode("utf-8")
xbmcvfs.copy doesnt work
Correct is:
One Question
Is there a better way to find out what should be used then:
Am i Correct, or have i done something wrong?
If someone find it and have some problems
1.
xbmcvfs.listdir
returns a list of arrays
on my List it was [[],["FILE1"]]
SO
Code:
for name in liste:
filename=name[0]
2.
fileLocation=urllib.quote_plus(fileLocation)
quelle=xbmc.translatePath(os.path.join(type, fileLocation)).decode("utf-8")
quelle=xbmc.translatePath(os.path.join(quelle, FILE)).decode("utf-8")
xbmcvfs.copy doesnt work
Correct is:
Code:
quelle=quelle+"/"+element[0]
One Question
Is there a better way to find out what should be used then:
Code:
try:
liste=xbmcvfs.listdir("rar://"+fileLocation)
except:
liste=xbmcvfs.listdir("zip://"+fileLocation)
Am i Correct, or have i done something wrong?