subs copy from subfolder

pull/1/head
DiMartinoXBMC 2015-08-09 10:42:22 +03:00
parent 63465725a3
commit 21490a342f
2 changed files with 12 additions and 0 deletions

11
Core.py
View File

@ -1090,6 +1090,17 @@ class Core:
elif tdir and action == 'copy':
path=os.path.join(folder, tdir)
dirs, files=xbmcvfs.listdir(path)
if len(dirs) > 0:
dirs.insert(0, self.localize('./ (Root folder)'))
for dd in dirs:
dds=xbmcvfs.listdir(os.path.join(path,dd))[0]
if len(dds)>0:
for d in dds:
dirs.append(dd+os.sep+d)
ret = xbmcgui.Dialog().select(self.localize('Choose directory:'), dirs)
if ret > 0:
path=os.path.join(path, dirs[ret])
dirs, files=xbmcvfs.listdir(path)
for file in files:
if not xbmcvfs.exists(os.path.join(path,file)):
xbmcvfs.delete(os.path.join(path,file))

View File

@ -271,6 +271,7 @@ def localize(text):
'We would like to set some advanced settings for you!':'Нам нужно обновить продвинутые настройки для работы!',
'Do it!':'Скажите "ДА"!',
'Please, restart Kodi now!':'Теперь перезагрузите Коди, пожалуйста!',
'./ (Root folder)':'./ (Корневой каталог)',
},
'uk': {
'Seeds searching.': 'Йде пошук сідів.',