fix back
parent
9315776648
commit
265b7f87d7
3
Core.py
3
Core.py
|
@ -1235,7 +1235,7 @@ class Core:
|
||||||
filename = os.path.join(folder, filename)
|
filename = os.path.join(folder, filename)
|
||||||
xbmc.executebuiltin('xbmc.PlayMedia("' + filename.encode('utf-8') + '")')
|
xbmc.executebuiltin('xbmc.PlayMedia("' + filename.encode('utf-8') + '")')
|
||||||
elif tdir and action == 'copy':
|
elif tdir and action == 'copy':
|
||||||
path=os.path.join(folder, tdir)
|
path = os.path.join(localize_path(folder), localize_path(tdir))
|
||||||
dirs, files=xbmcvfs.listdir(path)
|
dirs, files=xbmcvfs.listdir(path)
|
||||||
if len(dirs) > 0:
|
if len(dirs) > 0:
|
||||||
dirs.insert(0, self.localize('./ (Root folder)'))
|
dirs.insert(0, self.localize('./ (Root folder)'))
|
||||||
|
@ -1250,6 +1250,7 @@ class Core:
|
||||||
path=os.path.join(path, dirs[ret])
|
path=os.path.join(path, dirs[ret])
|
||||||
dirs, files=xbmcvfs.listdir(path)
|
dirs, files=xbmcvfs.listdir(path)
|
||||||
for file in files:
|
for file in files:
|
||||||
|
file = localize_path(file)
|
||||||
if not xbmcvfs.exists(os.path.join(path, file)):
|
if not xbmcvfs.exists(os.path.join(path, file)):
|
||||||
xbmcvfs.delete(os.path.join(path, file))
|
xbmcvfs.delete(os.path.join(path, file))
|
||||||
xbmcvfs.copy(os.path.join(path, file),os.path.join(folder, file))
|
xbmcvfs.copy(os.path.join(path, file),os.path.join(folder, file))
|
||||||
|
|
Loading…
Reference in New Issue