diff --git a/bin/__init__.py b/bin/__init__.py deleted file mode 100644 index 44fc62e..0000000 --- a/bin/__init__.py +++ /dev/null @@ -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() - diff --git a/bin/android_arm/torrent2http.size.txt b/bin/android_arm/torrent2http.size.txt new file mode 100644 index 0000000..7ecc11a --- /dev/null +++ b/bin/android_arm/torrent2http.size.txt @@ -0,0 +1 @@ +30366960 \ No newline at end of file diff --git a/bin/android_arm/torrent2http.zip b/bin/android_arm/torrent2http.zip new file mode 100644 index 0000000..92af4e0 Binary files /dev/null and b/bin/android_arm/torrent2http.zip differ diff --git a/bin/darwin_x64/torrent2http.size.txt b/bin/darwin_x64/torrent2http.size.txt new file mode 100644 index 0000000..b5f1bc5 --- /dev/null +++ b/bin/darwin_x64/torrent2http.size.txt @@ -0,0 +1 @@ +26146540 \ No newline at end of file diff --git a/bin/darwin_x64/torrent2http.zip b/bin/darwin_x64/torrent2http.zip new file mode 100644 index 0000000..1cf8a53 Binary files /dev/null and b/bin/darwin_x64/torrent2http.zip differ diff --git a/bin/linux_arm/torrent2http.size.txt b/bin/linux_arm/torrent2http.size.txt new file mode 100644 index 0000000..90259e1 --- /dev/null +++ b/bin/linux_arm/torrent2http.size.txt @@ -0,0 +1 @@ +24466041 \ No newline at end of file diff --git a/bin/linux_arm/torrent2http.zip b/bin/linux_arm/torrent2http.zip new file mode 100644 index 0000000..4354c34 Binary files /dev/null and b/bin/linux_arm/torrent2http.zip differ diff --git a/bin/linux_x64/torrent2http.size.txt b/bin/linux_x64/torrent2http.size.txt new file mode 100644 index 0000000..44006aa --- /dev/null +++ b/bin/linux_x64/torrent2http.size.txt @@ -0,0 +1 @@ +29381937 \ No newline at end of file diff --git a/bin/linux_x64/torrent2http.zip b/bin/linux_x64/torrent2http.zip new file mode 100644 index 0000000..0feeb02 Binary files /dev/null and b/bin/linux_x64/torrent2http.zip differ diff --git a/bin/linux_x86/torrent2http.size.txt b/bin/linux_x86/torrent2http.size.txt new file mode 100644 index 0000000..7a66716 --- /dev/null +++ b/bin/linux_x86/torrent2http.size.txt @@ -0,0 +1 @@ +25228652 \ No newline at end of file diff --git a/bin/linux_x86/torrent2http.zip b/bin/linux_x86/torrent2http.zip new file mode 100644 index 0000000..e6cd4be Binary files /dev/null and b/bin/linux_x86/torrent2http.zip differ diff --git a/bin/windows_x86/torrent2http.exe b/bin/windows_x86/torrent2http.exe deleted file mode 100644 index 4f20cd8..0000000 Binary files a/bin/windows_x86/torrent2http.exe and /dev/null differ diff --git a/bin/windows_x86/torrent2http.exe.size.txt b/bin/windows_x86/torrent2http.exe.size.txt new file mode 100644 index 0000000..6b58432 --- /dev/null +++ b/bin/windows_x86/torrent2http.exe.size.txt @@ -0,0 +1 @@ +22362887 \ No newline at end of file diff --git a/bin/windows_x86/torrent2http.exe.zip b/bin/windows_x86/torrent2http.exe.zip new file mode 100644 index 0000000..6747b31 Binary files /dev/null and b/bin/windows_x86/torrent2http.exe.zip differ diff --git a/bin/functions.py b/lib/torrent2http/functions.py similarity index 95% rename from bin/functions.py rename to lib/torrent2http/functions.py index 161b5b3..683387e 100644 --- a/bin/functions.py +++ b/lib/torrent2http/functions.py @@ -26,7 +26,6 @@ class LibraryManager(): def __init__(self, dest_path, platform): self.dest_path = dest_path self.platform = platform - self.root=os.path.dirname(__file__) def check_update(self): need_update=False @@ -34,7 +33,7 @@ class LibraryManager(): __settings__.setSetting('plugin_name', __plugin__) for libname in get_libname(self.platform): 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_old=open( self.sizepath, "r" ).read() if size_old!=size: diff --git a/bin/net.py b/lib/torrent2http/net.py similarity index 100% rename from bin/net.py rename to lib/torrent2http/net.py