diff --git a/resources/lib/downloader.py b/resources/lib/downloader.py index e94b3e62..0171ceff 100644 --- a/resources/lib/downloader.py +++ b/resources/lib/downloader.py @@ -300,7 +300,7 @@ class TheVoid(object): return response - if window('emby_should_stop.bool') or self.monitor.waitForAbort(0.2): + if window('emby_should_stop.bool') and self.monitor.waitForAbort(0.00001): LOG.info("Abandon mission! A black hole just swallowed [ %s ]", self.data['VoidName']) break diff --git a/service.py b/service.py index a22e0579..e22a2dc0 100644 --- a/service.py +++ b/service.py @@ -17,6 +17,11 @@ cache = xbmc.translatePath('special://temp/emby').decode('utf-8') if not xbmcvfs.exists(cache): xbmcvfs.mkdir(cache) +if not xbmcvfs.exists(os.path.join(cache, '__init__.py')): + + init = xbmcvfs.File(os.path.join(cache, '__init__.py'), 'w') + init.close() + sys.path.insert(0, cache) __addon__ = xbmcaddon.Addon(id='plugin.video.emby').getAddonInfo('path').decode('utf-8') __base__ = xbmc.translatePath(os.path.join(__addon__, 'resources', 'lib')).decode('utf-8')