1.0.6 version update by aisman
parent
4045c02bb4
commit
0bc6eea458
|
@ -37,7 +37,7 @@ else:
|
||||||
dest_path = os.path.join(dirname, platform['system'], platform['version'])
|
dest_path = os.path.join(dirname, platform['system'], platform['version'])
|
||||||
sys.path.insert(0, dest_path)
|
sys.path.insert(0, dest_path)
|
||||||
|
|
||||||
lm=LibraryManager(dest_path)
|
lm=LibraryManager(dest_path, platform)
|
||||||
if not lm.check_exist():
|
if not lm.check_exist():
|
||||||
ok=lm.download()
|
ok=lm.download()
|
||||||
xbmc.sleep(2000)
|
xbmc.sleep(2000)
|
||||||
|
|
|
@ -25,9 +25,9 @@ def getSettingAsBool(setting):
|
||||||
return __settings__.getSetting(setting).lower() == "true"
|
return __settings__.getSetting(setting).lower() == "true"
|
||||||
|
|
||||||
class LibraryManager():
|
class LibraryManager():
|
||||||
def __init__(self, dest_path):
|
def __init__(self, dest_path, platform):
|
||||||
self.dest_path = dest_path
|
self.dest_path = dest_path
|
||||||
self.platform = get_platform()
|
self.platform = platform
|
||||||
self.root=os.path.dirname(__file__)
|
self.root=os.path.dirname(__file__)
|
||||||
|
|
||||||
def check_exist(self):
|
def check_exist(self):
|
||||||
|
@ -41,7 +41,7 @@ class LibraryManager():
|
||||||
for libname in get_libname(self.platform):
|
for libname in get_libname(self.platform):
|
||||||
if libname!='liblibtorrent.so':
|
if libname!='liblibtorrent.so':
|
||||||
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['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=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:
|
||||||
|
@ -60,7 +60,7 @@ class LibraryManager():
|
||||||
for libname in get_libname(self.platform):
|
for libname in get_libname(self.platform):
|
||||||
dest = os.path.join(self.dest_path, libname)
|
dest = os.path.join(self.dest_path, libname)
|
||||||
log("try to fetch %s" % 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':
|
if libname!='liblibtorrent.so':
|
||||||
try:
|
try:
|
||||||
self.http = HTTP()
|
self.http = HTTP()
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
1979232
|
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
2048268
|
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
3517944
|
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
3514688
|
Binary file not shown.
Loading…
Reference in New Issue