failed experement
This commit is contained in:
		
							parent
							
								
									ef180cc215
								
							
						
					
					
						commit
						c796a03661
					
				
							
								
								
									
										3
									
								
								Core.py
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								Core.py
									
									
									
									
									
								
							@ -1491,7 +1491,8 @@ 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:
 | 
				
			||||||
                xbmc.executebuiltin('xbmc.RunPlugin("plugin://plugin.video.torrenter/?action=playTorrent&url='+fileIndex+'")')
 | 
					                self.playTorrent({'url': fileIndex})
 | 
				
			||||||
 | 
					                #xbmc.executebuiltin('xbmc.RunPlugin("plugin://plugin.video.torrenter/?action=playTorrent&url='+fileIndex+'")')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def openTorrent(self, params={}):
 | 
					    def openTorrent(self, params={}):
 | 
				
			||||||
        get = params.get
 | 
					        get = params.get
 | 
				
			||||||
 | 
				
			|||||||
@ -28,6 +28,7 @@ import xbmc
 | 
				
			|||||||
import xbmcgui
 | 
					import xbmcgui
 | 
				
			||||||
import xbmcvfs
 | 
					import xbmcvfs
 | 
				
			||||||
import xbmcaddon
 | 
					import xbmcaddon
 | 
				
			||||||
 | 
					import xbmcplugin
 | 
				
			||||||
import Localization
 | 
					import Localization
 | 
				
			||||||
from functions import encode_msg, isSubtitle, is_writable, file_url, localize_path
 | 
					from functions import encode_msg, isSubtitle, is_writable, file_url, localize_path
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -500,6 +501,7 @@ class InposPlayer(xbmc.Player):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        player = xbmc.Player()
 | 
					        player = xbmc.Player()
 | 
				
			||||||
        player.play(url, listitem)
 | 
					        player.play(url, listitem)
 | 
				
			||||||
 | 
					        #xbmcplugin.setResolvedUrl(int(sys.argv[1]), True, listitem)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        xbmc.sleep(2000)  # very important, do not edit this, podavan
 | 
					        xbmc.sleep(2000)  # very important, do not edit this, podavan
 | 
				
			||||||
        i = 0
 | 
					        i = 0
 | 
				
			||||||
 | 
				
			|||||||
@ -54,7 +54,7 @@ class SkorbaLoader:
 | 
				
			|||||||
        if not is_writable(self.storageDirectory):
 | 
					        if not is_writable(self.storageDirectory):
 | 
				
			||||||
            xbmcgui.Dialog().ok(Localization.localize('Torrenter v2'),
 | 
					            xbmcgui.Dialog().ok(Localization.localize('Torrenter v2'),
 | 
				
			||||||
                    Localization.localize('Your storage path is not writable or not local! Please change it in settings!'),
 | 
					                    Localization.localize('Your storage path is not writable or not local! Please change it in settings!'),
 | 
				
			||||||
                    Localization.localize(self.storageDirectory))
 | 
					                    self.storageDirectory)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            sys.exit(1)
 | 
					            sys.exit(1)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user