2020-11-19 21:08:35 +00:00
|
|
|
from deezer import Deezer
|
2020-08-15 13:49:45 +00:00
|
|
|
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-10-29 12:00:58 +00:00
|
|
|
def __init__(self, configFolder=None, overwriteDownloadFolder=None):
|
|
|
|
self.set = Settings(configFolder, overwriteDownloadFolder=overwriteDownloadFolder)
|
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)
|