deemix-py/deemix/app/__init__.py
RemixDev 7fd0bfaa07 Made -p cli argument create only that folder and not the default one
Moved default download folder inside music
Check XDG first, then fallback to untranslated 'Music' folder
This fixes #82
2020-10-29 13:00:58 +01:00

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)