pull/1/head
DiMartinoXBMC 2015-07-16 21:12:26 +03:00
parent a08becfe74
commit 57c518129e
2 changed files with 7 additions and 3 deletions

View File

@ -1,5 +1,5 @@
<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<addon id='script.module.libtorrent' version='0.6.19c' name='LibTorrent' provider-name='DiMartino'>
<addon id='script.module.libtorrent' version='0.6.19g' name='LibTorrent' provider-name='DiMartino, srg70, RussakHH'>
<requires>
<import addon='xbmc.python' version='2.1.0'/>
</requires>

View File

@ -31,10 +31,14 @@ if __settings__.getSetting('plugin_name')!=__plugin__:
lm.update()
log('platform: ' + str(platform))
if platform['system'] not in ['windows']:
log('os: '+str(os.uname()))
try:
if platform['system'] in ['darwin', 'linux_x86', 'windows']:
if platform['system'] in ['linux_x86', 'windows']:
import libtorrent
elif platform['system'] in ['darwin']:
from darwin import *
elif platform['system'] in ['linux_x86_64', 'linux_arm']:
from ctypes import *
dll_path=os.path.join(dest_path, 'libtorrent-rasterbar.so.7')