1.0.7 for macosx and ios by srg70
parent
b390039859
commit
997b145940
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Encoding">
|
||||
<file url="PROJECT" charset="UTF-8" />
|
||||
</component>
|
||||
</project>
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
|
||||
<addon id='script.module.libtorrent' version='1.0.7' name='LibTorrent' provider-name='DiMartino, srg70, RussakHH, aisman'>
|
||||
<addon id='script.module.libtorrent' version='1.0.7c' name='LibTorrent' provider-name='DiMartino, srg70, RussakHH, aisman'>
|
||||
<requires>
|
||||
<import addon='xbmc.python' version='2.1.0'/>
|
||||
</requires>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
1.0.7:
|
||||
Added 1.0.7 for Unix and Windows
|
||||
Added 1.0.7 for Unix and Windows, Mac, iOS
|
||||
|
||||
0.16.19:
|
||||
Edit custom library path with keyboard
|
||||
|
|
|
@ -13,7 +13,7 @@ except:
|
|||
|
||||
def get_libname(platform):
|
||||
libname=[]
|
||||
if platform['system'] in ['darwin', 'linux_x86', 'linux_arm', 'linux_armv6', 'linux_armv7', 'linux_x86_64']:
|
||||
if platform['system'] in ['darwin', 'linux_x86', 'linux_arm', 'linux_armv6', 'linux_armv7', 'linux_x86_64', 'ios_arm']:
|
||||
libname=['libtorrent.so']
|
||||
elif platform['system'] == 'windows':
|
||||
libname=['libtorrent.pyd']
|
||||
|
|
|
@ -38,6 +38,17 @@ else:
|
|||
if not os.path.exists(os.path.join(os.path.dirname(__file__), platform['system'], platform['version'])):
|
||||
log('set_version: back to default '+default_path)
|
||||
platform['version'] = default_path
|
||||
if not os.path.exists(os.path.join(os.path.dirname(__file__), platform['system'], platform['version'])):
|
||||
log('set_version: no default searching for any version')
|
||||
versions = os.listdir(os.path.join(os.path.dirname(__file__), platform['system'],))
|
||||
for ver in versions:
|
||||
if not os.path.isdir(os.path.join(os.path.dirname(__file__), platform['system'],ver)):
|
||||
versions.remove(ver)
|
||||
if len(versions)>1:
|
||||
platform['version'] = versions[0]
|
||||
else:
|
||||
log('die because the folder is empty')
|
||||
exit()
|
||||
dest_path = os.path.join(dirname, platform['system'], platform['version'])
|
||||
sys.path.insert(0, dest_path)
|
||||
|
||||
|
@ -58,7 +69,7 @@ if platform['system'] not in ['windows']:
|
|||
try:
|
||||
if platform['system'] in ['linux_x86', 'windows', 'linux_armv6', 'linux_armv7', 'linux_x86_64']:
|
||||
import libtorrent
|
||||
elif platform['system'] in ['darwin']:
|
||||
elif platform['system'] in ['darwin', 'ios']:
|
||||
import imp
|
||||
path_list = [dest_path]
|
||||
log('path_list = ' + str(path_list))
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
#-*- coding: utf-8 -*-
|
||||
'''
|
||||
Torrenter v2 plugin for XBMC/Kodi
|
||||
Copyright (C) 2015 srg70, RussakHH, DiMartino
|
||||
'''
|
|
@ -0,0 +1 @@
|
|||
9800688
|
Binary file not shown.
|
@ -0,0 +1,5 @@
|
|||
#-*- coding: utf-8 -*-
|
||||
'''
|
||||
Torrenter v2 plugin for XBMC/Kodi
|
||||
Copyright (C) 2015 DiMartino
|
||||
'''
|
|
@ -0,0 +1 @@
|
|||
8834480
|
Binary file not shown.
|
@ -0,0 +1,5 @@
|
|||
#-*- coding: utf-8 -*-
|
||||
'''
|
||||
Torrenter v2 plugin for XBMC/Kodi
|
||||
Copyright (C) 2015 DiMartino
|
||||
'''
|
Loading…
Reference in New Issue