subs copy from subfolder
This commit is contained in:
		
							parent
							
								
									63465725a3
								
							
						
					
					
						commit
						21490a342f
					
				
							
								
								
									
										11
									
								
								Core.py
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								Core.py
									
									
									
									
									
								
							@ -1090,6 +1090,17 @@ class Core:
 | 
				
			|||||||
                elif tdir and action == 'copy':
 | 
					                elif tdir and action == 'copy':
 | 
				
			||||||
                    path=os.path.join(folder, tdir)
 | 
					                    path=os.path.join(folder, tdir)
 | 
				
			||||||
                    dirs, files=xbmcvfs.listdir(path)
 | 
					                    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:
 | 
					                    for file in files:
 | 
				
			||||||
                        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))
 | 
				
			||||||
 | 
				
			|||||||
@ -271,6 +271,7 @@ def localize(text):
 | 
				
			|||||||
            'We would like to set some advanced settings for you!':'Нам нужно обновить продвинутые настройки для работы!',
 | 
					            'We would like to set some advanced settings for you!':'Нам нужно обновить продвинутые настройки для работы!',
 | 
				
			||||||
            'Do it!':'Скажите "ДА"!',
 | 
					            'Do it!':'Скажите "ДА"!',
 | 
				
			||||||
            'Please, restart Kodi now!':'Теперь перезагрузите Коди, пожалуйста!',
 | 
					            'Please, restart Kodi now!':'Теперь перезагрузите Коди, пожалуйста!',
 | 
				
			||||||
 | 
					            './ (Root folder)':'./ (Корневой каталог)',
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        'uk': {
 | 
					        'uk': {
 | 
				
			||||||
            'Seeds searching.': 'Йде пошук сідів.',
 | 
					            'Seeds searching.': 'Йде пошук сідів.',
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user