From 0032f49ab9692ba7e560f72312f9f1c4358b4c26 Mon Sep 17 00:00:00 2001 From: DiMartinoXBMC Date: Thu, 10 Mar 2016 00:03:34 +0300 Subject: [PATCH] kodi 17 fix --- addon.xml | 2 +- default.py | 3 ++- python_libtorrent/__init__.py | 24 +++++++++++++++++++ .../python_libtorrent/functions.py | 2 +- 4 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 python_libtorrent/__init__.py diff --git a/addon.xml b/addon.xml index a05a848..3bd08d9 100644 --- a/addon.xml +++ b/addon.xml @@ -1,5 +1,5 @@ - + diff --git a/default.py b/default.py index 1466dd3..3ba9f05 100644 --- a/default.py +++ b/default.py @@ -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 diff --git a/python_libtorrent/__init__.py b/python_libtorrent/__init__.py new file mode 100644 index 0000000..5fd8419 --- /dev/null +++ b/python_libtorrent/__init__.py @@ -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. +''' \ No newline at end of file diff --git a/python_libtorrent/python_libtorrent/functions.py b/python_libtorrent/python_libtorrent/functions.py index 23e3402..916a946 100644 --- a/python_libtorrent/python_libtorrent/functions.py +++ b/python_libtorrent/python_libtorrent/functions.py @@ -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: