deemix-py/deemix/app/__init__.py

13 lines
466 B
Python
Raw Normal View History

2020-08-15 13:49:45 +00:00
from deemix.api.deezer import Deezer
from deemix.app.settings import Settings
from deemix.app.queuemanager import QueueManager
2020-08-15 21:03:05 +00:00
from deemix.app.spotifyhelper import SpotifyHelper
2020-08-14 18:31:37 +00:00
class deemix:
2020-08-15 21:03:05 +00:00
def __init__(self, configFolder=None):
self.set = Settings(configFolder)
2020-08-15 13:49:45 +00:00
self.dz = Deezer()
2020-09-20 09:14:54 +00:00
self.dz.set_accept_language(self.set.settings.get('tagsLanguage'))
2020-08-15 21:03:05 +00:00
self.sp = SpotifyHelper(configFolder)
2020-09-12 11:08:28 +00:00
self.qm = QueueManager(self.sp)