diff --git a/resources/lib/main_service.py b/resources/lib/main_service.py index fadc79b..6e3605a 100644 --- a/resources/lib/main_service.py +++ b/resources/lib/main_service.py @@ -5,6 +5,8 @@ Background service which launches the http service. """ +import sys, os + import time from typing import Dict @@ -26,6 +28,8 @@ from librespot.core import Session SAVE_TO_RECENTLY_PLAYED_FILE = True +sys.path.insert(1, os.path.join(os.path.dirname(__file__), "deps")) + SPOTIFY_ADDON = xbmcaddon.Addon(id=ADDON_ID) diff --git a/service.py b/service.py index 646e84b..aa39927 100644 --- a/service.py +++ b/service.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- """ - plugin.audio.spotify + plugin.audio.librespot Spotify player for Kodi Main service entry point """ @@ -10,8 +10,11 @@ if __name__ == "__main__": import platform import sys + import os from resources.lib.utils import log_msg + sys.path.insert(1, os.path.join(os.path.dirname(__file__), "resources", "lib", "deps")) + log_msg(f"Python version: {sys.version}.") log_msg(f"Python exe: {sys.executable}.") log_msg(f"Platform: {platform.platform()}.")