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'?>
|
<?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>
|
<requires>
|
||||||
<import addon='xbmc.python' version='2.1.0'/>
|
<import addon='xbmc.python' version='2.1.0'/>
|
||||||
</requires>
|
</requires>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
1.0.7:
|
1.0.7:
|
||||||
Added 1.0.7 for Unix and Windows
|
Added 1.0.7 for Unix and Windows, Mac, iOS
|
||||||
|
|
||||||
0.16.19:
|
0.16.19:
|
||||||
Edit custom library path with keyboard
|
Edit custom library path with keyboard
|
||||||
|
|
|
@ -13,7 +13,7 @@ except:
|
||||||
|
|
||||||
def get_libname(platform):
|
def get_libname(platform):
|
||||||
libname=[]
|
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']
|
libname=['libtorrent.so']
|
||||||
elif platform['system'] == 'windows':
|
elif platform['system'] == 'windows':
|
||||||
libname=['libtorrent.pyd']
|
libname=['libtorrent.pyd']
|
||||||
|
|
|
@ -38,6 +38,17 @@ else:
|
||||||
if not os.path.exists(os.path.join(os.path.dirname(__file__), platform['system'], platform['version'])):
|
if not os.path.exists(os.path.join(os.path.dirname(__file__), platform['system'], platform['version'])):
|
||||||
log('set_version: back to default '+default_path)
|
log('set_version: back to default '+default_path)
|
||||||
platform['version'] = 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'])
|
dest_path = os.path.join(dirname, platform['system'], platform['version'])
|
||||||
sys.path.insert(0, dest_path)
|
sys.path.insert(0, dest_path)
|
||||||
|
|
||||||
|
@ -58,7 +69,7 @@ if platform['system'] not in ['windows']:
|
||||||
try:
|
try:
|
||||||
if platform['system'] in ['linux_x86', 'windows', 'linux_armv6', 'linux_armv7', 'linux_x86_64']:
|
if platform['system'] in ['linux_x86', 'windows', 'linux_armv6', 'linux_armv7', 'linux_x86_64']:
|
||||||
import libtorrent
|
import libtorrent
|
||||||
elif platform['system'] in ['darwin']:
|
elif platform['system'] in ['darwin', 'ios']:
|
||||||
import imp
|
import imp
|
||||||
path_list = [dest_path]
|
path_list = [dest_path]
|
||||||
log('path_list = ' + str(path_list))
|
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