test update #2
This commit is contained in:
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()
|
||||
|
1
bin/android_arm/torrent2http.size.txt
Normal file
1
bin/android_arm/torrent2http.size.txt
Normal file
@ -0,0 +1 @@
|
||||
30366960
|
BIN
bin/android_arm/torrent2http.zip
Normal file
BIN
bin/android_arm/torrent2http.zip
Normal file
Binary file not shown.
1
bin/darwin_x64/torrent2http.size.txt
Normal file
1
bin/darwin_x64/torrent2http.size.txt
Normal file
@ -0,0 +1 @@
|
||||
26146540
|
BIN
bin/darwin_x64/torrent2http.zip
Normal file
BIN
bin/darwin_x64/torrent2http.zip
Normal file
Binary file not shown.
1
bin/linux_arm/torrent2http.size.txt
Normal file
1
bin/linux_arm/torrent2http.size.txt
Normal file
@ -0,0 +1 @@
|
||||
24466041
|
BIN
bin/linux_arm/torrent2http.zip
Normal file
BIN
bin/linux_arm/torrent2http.zip
Normal file
Binary file not shown.
1
bin/linux_x64/torrent2http.size.txt
Normal file
1
bin/linux_x64/torrent2http.size.txt
Normal file
@ -0,0 +1 @@
|
||||
29381937
|
BIN
bin/linux_x64/torrent2http.zip
Normal file
BIN
bin/linux_x64/torrent2http.zip
Normal file
Binary file not shown.
1
bin/linux_x86/torrent2http.size.txt
Normal file
1
bin/linux_x86/torrent2http.size.txt
Normal file
@ -0,0 +1 @@
|
||||
25228652
|
BIN
bin/linux_x86/torrent2http.zip
Normal file
BIN
bin/linux_x86/torrent2http.zip
Normal file
Binary file not shown.
Binary file not shown.
1
bin/windows_x86/torrent2http.exe.size.txt
Normal file
1
bin/windows_x86/torrent2http.exe.size.txt
Normal file
@ -0,0 +1 @@
|
||||
22362887
|
BIN
bin/windows_x86/torrent2http.exe.zip
Normal file
BIN
bin/windows_x86/torrent2http.exe.zip
Normal file
Binary file not shown.
@ -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:
|
Loading…
x
Reference in New Issue
Block a user