android workaround update
This commit is contained in:
1 parent
43b72172f7
commit
a25646b4c6
3 files changed
+15
-7
No files matched your search
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user