mirror of
https://gitlab.com/RemixDev/deemix-py.git
synced 2025-01-01 12:46:11 +00:00
7fd0bfaa07
Moved default download folder inside music Check XDG first, then fallback to untranslated 'Music' folder This fixes #82
13 lines
545 B
Python
13 lines
545 B
Python
from deemix.api.deezer import Deezer
|
|
from deemix.app.settings import Settings
|
|
from deemix.app.queuemanager import QueueManager
|
|
from deemix.app.spotifyhelper import SpotifyHelper
|
|
|
|
class deemix:
|
|
def __init__(self, configFolder=None, overwriteDownloadFolder=None):
|
|
self.set = Settings(configFolder, overwriteDownloadFolder=overwriteDownloadFolder)
|
|
self.dz = Deezer()
|
|
self.dz.set_accept_language(self.set.settings.get('tagsLanguage'))
|
|
self.sp = SpotifyHelper(configFolder)
|
|
self.qm = QueueManager(self.sp)
|