Initial commit
commit
06204dcd9c
|
@ -0,0 +1,15 @@
|
|||
<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
|
||||
<addon id='script.module.libtorrent' version='0.6.19' name='LibTorrent' provider-name='DiMartino'>
|
||||
<requires>
|
||||
<import addon='xbmc.python' version='2.1.0'/>
|
||||
</requires>
|
||||
<extension point="xbmc.python.script" library="__init__.py">
|
||||
<provides>executable</provides>
|
||||
</extension>
|
||||
<extension point='xbmc.addon.metadata'>
|
||||
<platform>all</platform>
|
||||
<summary>LibTorrent</summary>
|
||||
</extension>
|
||||
<extension library="default.py" point="xbmc.service" />
|
||||
<extension point='xbmc.python.module'/>
|
||||
</addon>
|
|
@ -0,0 +1,2 @@
|
|||
0.6.10b:
|
||||
Windows update to 0.6.18
|
|
@ -0,0 +1,37 @@
|
|||
#-*- coding: utf-8 -*-
|
||||
'''
|
||||
Torrenter v2 plugin for XBMC/Kodi
|
||||
Copyright (C) 2012-2015 Vadim Skorba - DiMartino
|
||||
'''
|
||||
|
||||
from platform_pulsar import get_platform
|
||||
|
||||
platform = get_platform()
|
||||
|
||||
print '[script.module.libtorrent]: platform ' + str(platform)
|
||||
|
||||
try:
|
||||
import libtorrent
|
||||
|
||||
print '[script.module.libtorrent]: Imported libtorrent v' + libtorrent.version + ' from system'
|
||||
except Exception, e:
|
||||
print '[script.module.libtorrent]: Error importing from system. Exception: ' + str(e)
|
||||
|
||||
try:
|
||||
#dirname = os.path.join(xbmc.translatePath('special://home'), 'addons', 'script.module.libtorrent',
|
||||
# 'python_libtorrent', platform['system'])
|
||||
#sys.path.insert(0, dirname)
|
||||
if platform['system'] == 'darwin':
|
||||
from darwin.libtorrent import *
|
||||
elif platform['system'] == 'linux_x86':
|
||||
from linux_x86.libtorrent import *
|
||||
elif platform['system'] == 'linux_x86_64':
|
||||
from linux_x86_64.libtorrent import *
|
||||
elif platform['system'] == 'windows':
|
||||
from windows.libtorrent import *
|
||||
|
||||
#print '[script.module.libtorrent]: Imported libtorrent v' + libtorrent.version + ' from python_libtorrent.' + platform[
|
||||
# 'system']
|
||||
except Exception, e:
|
||||
print '[script.module.libtorrent]: Error importing python_libtorrent.' + platform['system'] + '. Exception: ' + str(e)
|
||||
pass
|
|
@ -0,0 +1,19 @@
|
|||
#-*- coding: utf-8 -*-
|
||||
'''
|
||||
Torrenter plugin for XBMC
|
||||
Copyright (C) 2012 Vadim Skorba
|
||||
vadim.skorba@gmail.com
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
'''
|
Binary file not shown.
|
@ -0,0 +1,19 @@
|
|||
#-*- coding: utf-8 -*-
|
||||
'''
|
||||
Torrenter plugin for XBMC
|
||||
Copyright (C) 2012 Vadim Skorba
|
||||
vadim.skorba@gmail.com
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
'''
|
Binary file not shown.
|
@ -0,0 +1,19 @@
|
|||
#-*- coding: utf-8 -*-
|
||||
'''
|
||||
Torrenter plugin for XBMC
|
||||
Copyright (C) 2012 Vadim Skorba
|
||||
vadim.skorba@gmail.com
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
'''
|
|
@ -0,0 +1,62 @@
|
|||
import sys
|
||||
import os
|
||||
|
||||
import xbmc
|
||||
|
||||
|
||||
def get_platform():
|
||||
ret = {
|
||||
"arch": sys.maxsize > 2 ** 32 and "x64" or "x86",
|
||||
}
|
||||
if xbmc.getCondVisibility("system.platform.android"):
|
||||
ret["os"] = "android"
|
||||
if "arm" in os.uname()[4]:
|
||||
ret["arch"] = "arm"
|
||||
elif xbmc.getCondVisibility("system.platform.linux"):
|
||||
ret["os"] = "linux"
|
||||
if "arm" in os.uname()[4]:
|
||||
ret["arch"] = "arm"
|
||||
elif xbmc.getCondVisibility("system.platform.xbox"):
|
||||
system_platform = "xbox"
|
||||
ret["arch"] = ""
|
||||
elif xbmc.getCondVisibility("system.platform.windows"):
|
||||
ret["os"] = "windows"
|
||||
elif xbmc.getCondVisibility("system.platform.osx"):
|
||||
ret["os"] = "darwin"
|
||||
elif xbmc.getCondVisibility("system.platform.ios"):
|
||||
ret["os"] = "ios"
|
||||
ret["arch"] = "arm"
|
||||
|
||||
ret["system"] = ''
|
||||
ret["message"] = ['', '']
|
||||
|
||||
if ret["os"] == 'windows':
|
||||
ret["system"] = 'windows'
|
||||
ret["message"] = ['Windows has static compiled python-libtorrent included.',
|
||||
'You should install "script.module.libtorrent" from "MyShows.me Kodi Repo"']
|
||||
elif ret["os"] == "linux" and ret["arch"] == "x64":
|
||||
ret["system"] = 'linux_x86_64'
|
||||
ret["message"] = ['Linux x64 has not static compiled python-libtorrent included.',
|
||||
'You should install it by "sudo apt-get install python-libtorrent"']
|
||||
elif ret["os"] == "linux" and ret["arch"] == "x86":
|
||||
ret["system"] = 'linux_x86'
|
||||
ret["message"] = ['Linux has static compiled python-libtorrent included but it didn\'t work.',
|
||||
'You should install it by "sudo apt-get install python-libtorrent"']
|
||||
elif ret["os"] == "linux" and ret["arch"] == "arm":
|
||||
ret["system"] = 'linux_arm'
|
||||
ret["message"] = ['As far as I know you can compile python-libtorrent for ARMv6-7.',
|
||||
'You should search for "OneEvil\'s OpenELEC libtorrent" or use Ace Stream.']
|
||||
elif ret["os"] == "android":
|
||||
ret["system"] = 'android'
|
||||
ret["message"] = ['Please use install Ace Stream APK and choose it in Settings.',
|
||||
'It is possible to compile python-libtorrent for Android, but I don\'t know how.']
|
||||
elif ret["os"] == "darwin":
|
||||
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'
|
||||
ret["message"] = ['It is NOT possible to compile python-libtorrent for iOS.',
|
||||
'But you can use torrent-client control functions.']
|
||||
|
||||
return ret
|
|
@ -0,0 +1,19 @@
|
|||
#-*- coding: utf-8 -*-
|
||||
'''
|
||||
Torrenter plugin for XBMC
|
||||
Copyright (C) 2012 Vadim Skorba
|
||||
vadim.skorba@gmail.com
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
'''
|
Binary file not shown.
|
@ -0,0 +1,31 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<strings>
|
||||
<string id="1000">Initialization</string>
|
||||
<string id="1001">Connecting</string>
|
||||
<string id="1002">Waiting</string>
|
||||
<string id="1003">Sending Data</string>
|
||||
<string id="1004">Receiving link</string>
|
||||
<string id="1005">Playing</string>
|
||||
<string id="1006">Cancel</string>
|
||||
|
||||
<string id="1100">Pre-buffering</string>
|
||||
<string id="1101">Buffering</string>
|
||||
<string id="1102">Downloading</string>
|
||||
<string id="1103">Verifying data</string>
|
||||
<string id="1104">TS Engine Idling</string>
|
||||
<string id="1105">TS Engine Waiting</string>
|
||||
|
||||
<string id="1150">Seeds: %s Speed: %s</string>
|
||||
<string id="1151">Seconds %s'</string>
|
||||
|
||||
<string id="1010">TS Engine not running!</string>
|
||||
<string id="1011">No answer</string>
|
||||
<string id="1012">Error torrent loading</string>
|
||||
<string id="1013">Timeout</string>
|
||||
|
||||
<string id="2000">Server Address</string>
|
||||
<string id="2001">AutoPausing</string>
|
||||
<string id="2002">AutoClose tsengine</string>
|
||||
<string id="2003">Show Buffering Status</string>
|
||||
|
||||
</strings>
|
|
@ -0,0 +1,30 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<strings>
|
||||
<string id="1000">Инициализация</string>
|
||||
<string id="1001">Соединение</string>
|
||||
<string id="1002">Жду ответа</string>
|
||||
<string id="1003">Передаю данные</string>
|
||||
<string id="1004">Получаю ссылку</string>
|
||||
<string id="1005">Начинаю воспроизведение</string>
|
||||
<string id="1006">Отмена</string>
|
||||
|
||||
<string id="1100">Предварительная буферизация</string>
|
||||
<string id="1101">Буферизация</string>
|
||||
<string id="1102">Скачивание</string>
|
||||
<string id="1103">Проверка</string>
|
||||
<string id="1104">TS Engine бездействует</string>
|
||||
<string id="1105">TS Engine ожидает</string>
|
||||
|
||||
<string id="1150">Пиры:%s Скорость:%s</string>
|
||||
<string id="1151">Секунд %ы'</string>
|
||||
|
||||
<string id="1010">TS Engine не запущен!</string>
|
||||
<string id="1011">Нет ответа</string>
|
||||
<string id="1012">Ошибка загрузки торрента</string>
|
||||
<string id="1013">Не дождался ссылки для воспроизведения</string>
|
||||
|
||||
<string id="2000">Адрес сервера</string>
|
||||
<string id="2001">Использовать автопаузу</string>
|
||||
<string id="2002">Автозакрытие tsengine</string>
|
||||
<string id="2003">Показывать уведомления о буферизации</string>
|
||||
</strings>
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<settings>
|
||||
<category label="Настройки">
|
||||
</category>
|
||||
</settings>
|
Loading…
Reference in New Issue