check version
parent
0656286fa6
commit
791481214e
5
Core.py
5
Core.py
|
@ -1410,6 +1410,7 @@ class Core:
|
||||||
|
|
||||||
def playTorrent(self, params={}):
|
def playTorrent(self, params={}):
|
||||||
torrentUrl = self.__settings__.getSetting("lastTorrent")
|
torrentUrl = self.__settings__.getSetting("lastTorrent")
|
||||||
|
#xbmc.executebuiltin('Action(Stop)')
|
||||||
self.userStorage(params)
|
self.userStorage(params)
|
||||||
if self.torrent_player == '0':
|
if self.torrent_player == '0':
|
||||||
from Player import TorrentPlayer
|
from Player import TorrentPlayer
|
||||||
|
@ -1693,7 +1694,7 @@ class Core:
|
||||||
xbmcplugin.endOfDirectory(handle=int(sys.argv[1]), succeeded=True)
|
xbmcplugin.endOfDirectory(handle=int(sys.argv[1]), succeeded=True)
|
||||||
|
|
||||||
def context(self, params={}):
|
def context(self, params={}):
|
||||||
if int(self.version_check()[:2]) < 17:
|
if not self.version_check():
|
||||||
xbmc.executebuiltin("Action(ContextMenu)")
|
xbmc.executebuiltin("Action(ContextMenu)")
|
||||||
sys.exit()
|
sys.exit()
|
||||||
else:
|
else:
|
||||||
|
@ -1714,7 +1715,7 @@ class Core:
|
||||||
(sys.argv[0], 'downloadFilesList', params['url']))
|
(sys.argv[0], 'downloadFilesList', params['url']))
|
||||||
|
|
||||||
def version_check(self):
|
def version_check(self):
|
||||||
return xbmc.getInfoLabel( "System.BuildVersion" )
|
return False if int(xbmc.getInfoLabel( "System.BuildVersion" )[:2]) < 17 else True
|
||||||
|
|
||||||
def downloadFilesList(self, params={}):
|
def downloadFilesList(self, params={}):
|
||||||
from resources.utorrent.net import Download
|
from resources.utorrent.net import Download
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
<addon id="plugin.video.torrenter" name="Torrenter" version="2.5.4" provider-name="DiMartino">
|
<addon id="plugin.video.torrenter" name="Torrenter" version="2.5.4a" provider-name="DiMartino">
|
||||||
<requires>
|
<requires>
|
||||||
<import addon="xbmc.python" version="2.1.0"/>
|
<import addon="xbmc.python" version="2.1.0"/>
|
||||||
<import addon="script.module.libtorrent"/>
|
<import addon="script.module.libtorrent"/>
|
||||||
|
|
Loading…
Reference in New Issue