fix back
This commit is contained in:
		
							parent
							
								
									32afdf2afa
								
							
						
					
					
						commit
						0c44c02c12
					
				
							
								
								
									
										12
									
								
								Core.py
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								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(localize_path(folder), localize_path(tdir)) |                     path=os.path.join(folder, 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,10 +1250,9 @@ 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)) | ||||||
|                         i=i+1 |                         i=i+1 | ||||||
|                     showMessage(self.localize('Torrent-client Browser'), self.localize('Copied %d files!') % i, forced=True) |                     showMessage(self.localize('Torrent-client Browser'), self.localize('Copied %d files!') % i, forced=True) | ||||||
|                 return |                 return | ||||||
| @ -1491,8 +1490,7 @@ class Core: | |||||||
|             self.__settings__.setSetting("lastTorrent", torrent.saveTorrent(url)) |             self.__settings__.setSetting("lastTorrent", torrent.saveTorrent(url)) | ||||||
|             if fileIndex==None: fileIndex = chooseFile(torrent.getContentList()) |             if fileIndex==None: fileIndex = chooseFile(torrent.getContentList()) | ||||||
|             if fileIndex: |             if fileIndex: | ||||||
|                 item = get_item() |                 xbmc.executebuiltin('xbmc.RunPlugin("plugin://plugin.video.torrenter/?action=playTorrent&url='+fileIndex+'")') | ||||||
|                 self.playTorrent({'url': fileIndex, 'listitem': item}) |  | ||||||
| 
 | 
 | ||||||
|     def openTorrent(self, params={}): |     def openTorrent(self, params={}): | ||||||
|         get = params.get |         get = params.get | ||||||
| @ -1608,7 +1606,7 @@ class Core: | |||||||
| 
 | 
 | ||||||
|     def searchWindow(self, params={}): |     def searchWindow(self, params={}): | ||||||
|         import searchwindow |         import searchwindow | ||||||
|         searchwindow.main() |         searchwindow.main(params) | ||||||
| 
 | 
 | ||||||
|     def showFilesList(self, filesList, params={}): |     def showFilesList(self, filesList, params={}): | ||||||
|         get = params.get |         get = params.get | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user