From b7bab5a42d37a980a220fbb44620e9d06c5ef7d0 Mon Sep 17 00:00:00 2001 From: DiMartinoXBMC Date: Fri, 17 Jul 2015 20:53:52 +0300 Subject: [PATCH] fix fix --- addon.xml | 2 +- python_libtorrent/__init__.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/addon.xml b/addon.xml index 128bfab..4cdddb5 100644 --- a/addon.xml +++ b/addon.xml @@ -1,5 +1,5 @@ - + diff --git a/python_libtorrent/__init__.py b/python_libtorrent/__init__.py index 6171583..08ff417 100644 --- a/python_libtorrent/__init__.py +++ b/python_libtorrent/__init__.py @@ -5,7 +5,7 @@ ''' from functions import * -import xbmc, xbmcgui, xbmcvfs, xbmcaddon +import xbmc, xbmcaddon import sys import os @@ -49,7 +49,7 @@ try: finally: if fp: fp.close() elif platform['system'] in ['linux_x86_64', 'linux_arm']: - from ctypes import cdll + from ctypes import * dll_path=os.path.join(dest_path, 'libtorrent-rasterbar.so.7') log('CDLL path = ' + dll_path) liblibtorrent=cdll(dll_path) @@ -57,7 +57,7 @@ try: import libtorrent elif platform['system'] in ['android_armv7', 'android_x86']: import imp - from ctypes import cdll + from ctypes import * dll_path=os.path.join(dest_path, 'liblibtorrent.so') log('CDLL path = ' + dll_path)