kodi 17 fix

pull/1/head
DiMartinoXBMC 2016-03-10 00:03:34 +03:00
parent ba8d5ac74f
commit 0032f49ab9
4 changed files with 28 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='1.0.9' name='python-libtorrent' provider-name='DiMartino, srg70, RussakHH, aisman'>
<addon id='script.module.libtorrent' version='1.0.9a' name='python-libtorrent' provider-name='DiMartino, srg70, RussakHH, aisman'>
<requires>
<import addon='xbmc.python' version='2.1.0'/>
</requires>

View File

@ -23,7 +23,8 @@
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
'''
from python_libtorrent import get_libtorrent, get_platform, log
from python_libtorrent.python_libtorrent import get_libtorrent, log
from python_libtorrent.platform_pulsar import get_platform
import xbmcgui
import xbmcaddon, xbmc

View File

@ -0,0 +1,24 @@
#-*- coding: utf-8 -*-
'''
python-libtorrent for Kodi (script.module.libtorrent)
Copyright (C) 2015-2016 DiMartino, srg70, RussakHH, aisman
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
'''

View File

@ -35,7 +35,7 @@ __icon__=os.path.join(xbmc.translatePath('special://home'), 'addons',
'script.module.libtorrent', 'icon.png')
__language__ = __settings__.getLocalizedString
from platform_pulsar import get_platform, get_libname
from ..platform_pulsar import get_platform, get_libname
def log(msg):
try: