android workaround update
parent
43b72172f7
commit
a25646b4c6
|
@ -1,5 +1,5 @@
|
|||
<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
|
||||
<addon id='script.module.libtorrent' version='0.16.19' name='LibTorrent' provider-name='DiMartino, srg70, RussakHH'>
|
||||
<addon id='script.module.libtorrent' version='0.16.19b' name='LibTorrent' provider-name='DiMartino, srg70, RussakHH'>
|
||||
<requires>
|
||||
<import addon='xbmc.python' version='2.1.0'/>
|
||||
</requires>
|
||||
|
|
|
@ -74,10 +74,19 @@ try:
|
|||
log('CDLL = ' + str(liblibtorrent))
|
||||
except:
|
||||
# If no permission in dest_path we need to go deeper!
|
||||
# http://i3.kym-cdn.com/photos/images/original/000/531/557/a88.jpg
|
||||
dest_path=lm.android_workaround()
|
||||
dll_path=os.path.join(dest_path, 'liblibtorrent.so')
|
||||
log('NEW CDLL path = ' + dll_path)
|
||||
try:
|
||||
dest_path=lm.android_workaround(new_dest_path='/data/data/org.xbmc.kodi/lib/')
|
||||
dll_path=os.path.join(dest_path, 'liblibtorrent.so')
|
||||
log('NEW CDLL path = ' + dll_path)
|
||||
liblibtorrent=CDLL(dll_path)
|
||||
log('CDLL = ' + str(liblibtorrent))
|
||||
except:
|
||||
# http://i3.kym-cdn.com/photos/images/original/000/531/557/a88.jpg
|
||||
dest_path=lm.android_workaround(new_dest_path=xbmc.translatePath('special://xbmc'))
|
||||
dll_path=os.path.join(dest_path, 'liblibtorrent.so')
|
||||
log('NEW CDLL path = ' + dll_path)
|
||||
liblibtorrent=CDLL(dll_path)
|
||||
log('CDLL = ' + str(liblibtorrent))
|
||||
liblibtorrent=CDLL(dll_path)
|
||||
log('CDLL = ' + str(liblibtorrent))
|
||||
path_list = [dest_path]
|
||||
|
|
|
@ -75,8 +75,7 @@ class LibraryManager():
|
|||
xbmcvfs.copy(os.path.join(self.dest_path, 'libtorrent.so'), dest)
|
||||
return True
|
||||
|
||||
def android_workaround(self):
|
||||
new_dest_path='/data/data/org.xbmc.kodi/lib/'
|
||||
def android_workaround(self, new_dest_path):
|
||||
for libname in get_libname(self.platform):
|
||||
libpath=os.path.join(self.dest_path, libname)
|
||||
size=str(os.path.getsize(libpath))
|
||||
|
|
Loading…
Reference in New Issue