diff --git a/Core.py b/Core.py index 87afe7d..8c21717 100644 --- a/Core.py +++ b/Core.py @@ -1491,7 +1491,8 @@ class Core: self.__settings__.setSetting("lastTorrent", torrent.saveTorrent(url)) if fileIndex==None: fileIndex = chooseFile(torrent.getContentList()) 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={}): get = params.get diff --git a/Inposloader.py b/Inposloader.py index 6e754ff..ab62122 100644 --- a/Inposloader.py +++ b/Inposloader.py @@ -28,6 +28,7 @@ import xbmc import xbmcgui import xbmcvfs import xbmcaddon +import xbmcplugin import Localization from functions import encode_msg, isSubtitle, is_writable, file_url, localize_path @@ -500,6 +501,7 @@ class InposPlayer(xbmc.Player): player = xbmc.Player() player.play(url, listitem) + #xbmcplugin.setResolvedUrl(int(sys.argv[1]), True, listitem) xbmc.sleep(2000) # very important, do not edit this, podavan i = 0 diff --git a/SkorbaLoader.py b/SkorbaLoader.py index 34048c5..cd316db 100644 --- a/SkorbaLoader.py +++ b/SkorbaLoader.py @@ -54,7 +54,7 @@ class SkorbaLoader: if not is_writable(self.storageDirectory): 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(self.storageDirectory)) + self.storageDirectory) sys.exit(1)