test update #2
parent
ffad6b76e4
commit
942a55ac13
|
@ -1,25 +0,0 @@
|
||||||
#-*- coding: utf-8 -*-
|
|
||||||
'''
|
|
||||||
Torrenter v2 plugin for XBMC/Kodi
|
|
||||||
Copyright (C) 2015 srg70, RussakHH, DiMartino
|
|
||||||
'''
|
|
||||||
|
|
||||||
from functions import *
|
|
||||||
import xbmc, xbmcaddon
|
|
||||||
import sys
|
|
||||||
import os
|
|
||||||
|
|
||||||
__settings__ = xbmcaddon.Addon(id='script.module.libtorrent')
|
|
||||||
__version__ = __settings__.getAddonInfo('version')
|
|
||||||
__plugin__ = __settings__.getAddonInfo('name') + " v." + __version__
|
|
||||||
|
|
||||||
lm=LibraryManager(dest_path, platform)
|
|
||||||
if not lm.check_exist():
|
|
||||||
ok=lm.download()
|
|
||||||
xbmc.sleep(2000)
|
|
||||||
|
|
||||||
|
|
||||||
if __settings__.getSetting('plugin_name')!=__plugin__:
|
|
||||||
__settings__.setSetting('plugin_name', __plugin__)
|
|
||||||
lm.update()
|
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
30366960
|
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
26146540
|
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
24466041
|
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
29381937
|
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
25228652
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
22362887
|
Binary file not shown.
|
@ -26,7 +26,6 @@ class LibraryManager():
|
||||||
def __init__(self, dest_path, platform):
|
def __init__(self, dest_path, platform):
|
||||||
self.dest_path = dest_path
|
self.dest_path = dest_path
|
||||||
self.platform = platform
|
self.platform = platform
|
||||||
self.root=os.path.dirname(__file__)
|
|
||||||
|
|
||||||
def check_update(self):
|
def check_update(self):
|
||||||
need_update=False
|
need_update=False
|
||||||
|
@ -34,7 +33,7 @@ class LibraryManager():
|
||||||
__settings__.setSetting('plugin_name', __plugin__)
|
__settings__.setSetting('plugin_name', __plugin__)
|
||||||
for libname in get_libname(self.platform):
|
for libname in get_libname(self.platform):
|
||||||
self.libpath = os.path.join(self.dest_path, libname)
|
self.libpath = os.path.join(self.dest_path, libname)
|
||||||
self.sizepath=os.path.join(self.root, self.platform, libname+'.size.txt')
|
self.sizepath=os.path.join(self.dest_path, self.platform, libname+'.size.txt')
|
||||||
size=str(os.path.getsize(self.libpath))
|
size=str(os.path.getsize(self.libpath))
|
||||||
size_old=open( self.sizepath, "r" ).read()
|
size_old=open( self.sizepath, "r" ).read()
|
||||||
if size_old!=size:
|
if size_old!=size:
|
Loading…
Reference in New Issue