diff --git a/platform_pulsar.py b/platform_pulsar.py index 2752cf7..7cc5ae0 100644 --- a/platform_pulsar.py +++ b/platform_pulsar.py @@ -125,8 +125,8 @@ def get_system(ret): ret["system"] = 'darwin' ret["message"] = ['It is possible to compile python-libtorrent for OS X.', 'But you would have to do it by yourself, there is some info on github.com.'] - elif ret["os"] == "ios": - ret["system"] = 'ios' + elif ret["os"] == "ios" and ret["arch"] == "arm": + ret["system"] = 'ios_arm' ret["message"] = ['It is probably NOT possible to compile python-libtorrent for iOS.', 'But you can use torrent-client control functions.'] diff --git a/python_libtorrent/__init__.py b/python_libtorrent/__init__.py index 534bcab..97300da 100644 --- a/python_libtorrent/__init__.py +++ b/python_libtorrent/__init__.py @@ -44,7 +44,7 @@ if not os.path.exists(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: + if len(versions)>0: platform['version'] = versions[0] else: log('die because the folder is empty') @@ -69,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', 'ios']: + elif platform['system'] in ['darwin', 'ios_arm']: import imp path_list = [dest_path] log('path_list = ' + str(path_list))