diff --git a/python_libtorrent/__init__.py b/python_libtorrent/__init__.py index 8e519c8..4b3edc0 100644 --- a/python_libtorrent/__init__.py +++ b/python_libtorrent/__init__.py @@ -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) diff --git a/python_libtorrent/functions.py b/python_libtorrent/functions.py index 3b18620..30c20f0 100644 --- a/python_libtorrent/functions.py +++ b/python_libtorrent/functions.py @@ -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() diff --git a/python_libtorrent/linux_armv6/1.0.6/libtorrent.so.size.txt b/python_libtorrent/linux_armv6/1.0.6/libtorrent.so.size.txt new file mode 100644 index 0000000..62a4af3 --- /dev/null +++ b/python_libtorrent/linux_armv6/1.0.6/libtorrent.so.size.txt @@ -0,0 +1 @@ +1979232 \ No newline at end of file diff --git a/python_libtorrent/linux_armv6/1.0.6/libtorrent.so.zip b/python_libtorrent/linux_armv6/1.0.6/libtorrent.so.zip new file mode 100644 index 0000000..83e7d7a Binary files /dev/null and b/python_libtorrent/linux_armv6/1.0.6/libtorrent.so.zip differ diff --git a/python_libtorrent/linux_armv7/1.0.6/libtorrent.so.size.txt b/python_libtorrent/linux_armv7/1.0.6/libtorrent.so.size.txt new file mode 100644 index 0000000..98acdd6 --- /dev/null +++ b/python_libtorrent/linux_armv7/1.0.6/libtorrent.so.size.txt @@ -0,0 +1 @@ +2048268 \ No newline at end of file diff --git a/python_libtorrent/linux_armv7/1.0.6/libtorrent.so.zip b/python_libtorrent/linux_armv7/1.0.6/libtorrent.so.zip new file mode 100644 index 0000000..db5c2cf Binary files /dev/null and b/python_libtorrent/linux_armv7/1.0.6/libtorrent.so.zip differ diff --git a/python_libtorrent/linux_x86/1.0.6/libtorrent.so.size.txt b/python_libtorrent/linux_x86/1.0.6/libtorrent.so.size.txt new file mode 100644 index 0000000..3e74d11 --- /dev/null +++ b/python_libtorrent/linux_x86/1.0.6/libtorrent.so.size.txt @@ -0,0 +1 @@ +3517944 \ No newline at end of file diff --git a/python_libtorrent/linux_x86/1.0.6/libtorrent.so.zip b/python_libtorrent/linux_x86/1.0.6/libtorrent.so.zip new file mode 100644 index 0000000..284c363 Binary files /dev/null and b/python_libtorrent/linux_x86/1.0.6/libtorrent.so.zip differ diff --git a/python_libtorrent/linux_x86_64/1.0.6/libtorrent.so.size.txt b/python_libtorrent/linux_x86_64/1.0.6/libtorrent.so.size.txt new file mode 100644 index 0000000..bd538ff --- /dev/null +++ b/python_libtorrent/linux_x86_64/1.0.6/libtorrent.so.size.txt @@ -0,0 +1 @@ +3514688 \ No newline at end of file diff --git a/python_libtorrent/linux_x86_64/1.0.6/libtorrent.so.zip b/python_libtorrent/linux_x86_64/1.0.6/libtorrent.so.zip new file mode 100644 index 0000000..b722bb3 Binary files /dev/null and b/python_libtorrent/linux_x86_64/1.0.6/libtorrent.so.zip differ