1.0.6 version update by aisman
This commit is contained in:
parent
4045c02bb4
commit
0bc6eea458
@ -37,7 +37,7 @@ else:
|
||||
dest_path = os.path.join(dirname, platform['system'], platform['version'])
|
||||
sys.path.insert(0, dest_path)
|
||||
|
||||
lm=LibraryManager(dest_path)
|
||||
lm=LibraryManager(dest_path, platform)
|
||||
if not lm.check_exist():
|
||||
ok=lm.download()
|
||||
xbmc.sleep(2000)
|
||||
|
@ -25,9 +25,9 @@ def getSettingAsBool(setting):
|
||||
return __settings__.getSetting(setting).lower() == "true"
|
||||
|
||||
class LibraryManager():
|
||||
def __init__(self, dest_path):
|
||||
def __init__(self, dest_path, platform):
|
||||
self.dest_path = dest_path
|
||||
self.platform = get_platform()
|
||||
self.platform = platform
|
||||
self.root=os.path.dirname(__file__)
|
||||
|
||||
def check_exist(self):
|
||||
@ -41,7 +41,7 @@ class LibraryManager():
|
||||
for libname in get_libname(self.platform):
|
||||
if libname!='liblibtorrent.so':
|
||||
self.libpath = os.path.join(self.dest_path, libname)
|
||||
self.sizepath=os.path.join(self.root, self.platform['system'], libname+'.size.txt')
|
||||
self.sizepath=os.path.join(self.root, self.platform['system'], self.platform['version'], libname+'.size.txt')
|
||||
size=str(os.path.getsize(self.libpath))
|
||||
size_old=open( self.sizepath, "r" ).read()
|
||||
if size_old!=size:
|
||||
@ -60,7 +60,7 @@ class LibraryManager():
|
||||
for libname in get_libname(self.platform):
|
||||
dest = os.path.join(self.dest_path, libname)
|
||||
log("try to fetch %s" % libname)
|
||||
url = "%s/%s/%s.zip" % (__libbaseurl__, self.platform['system'], libname)
|
||||
url = "%s/%s/%s/%s.zip" % (__libbaseurl__, self.platform['system'], self.platform['version'], libname)
|
||||
if libname!='liblibtorrent.so':
|
||||
try:
|
||||
self.http = HTTP()
|
||||
|
@ -0,0 +1 @@
|
||||
1979232
|
BIN
python_libtorrent/linux_armv6/1.0.6/libtorrent.so.zip
Normal file
BIN
python_libtorrent/linux_armv6/1.0.6/libtorrent.so.zip
Normal file
Binary file not shown.
@ -0,0 +1 @@
|
||||
2048268
|
BIN
python_libtorrent/linux_armv7/1.0.6/libtorrent.so.zip
Normal file
BIN
python_libtorrent/linux_armv7/1.0.6/libtorrent.so.zip
Normal file
Binary file not shown.
1
python_libtorrent/linux_x86/1.0.6/libtorrent.so.size.txt
Normal file
1
python_libtorrent/linux_x86/1.0.6/libtorrent.so.size.txt
Normal file
@ -0,0 +1 @@
|
||||
3517944
|
BIN
python_libtorrent/linux_x86/1.0.6/libtorrent.so.zip
Normal file
BIN
python_libtorrent/linux_x86/1.0.6/libtorrent.so.zip
Normal file
Binary file not shown.
@ -0,0 +1 @@
|
||||
3514688
|
BIN
python_libtorrent/linux_x86_64/1.0.6/libtorrent.so.zip
Normal file
BIN
python_libtorrent/linux_x86_64/1.0.6/libtorrent.so.zip
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user