Added Env-Var for State-Directory
This commit is contained in:
@@ -16,6 +16,7 @@ class Config:
|
||||
_DEFAULTS = {
|
||||
'DOWNLOAD_DIR': '.',
|
||||
'AUDIO_DOWNLOAD_DIR': '%%DOWNLOAD_DIR',
|
||||
'STATE_DIR': '.',
|
||||
'URL_PREFIX': '',
|
||||
'OUTPUT_TEMPLATE': '%(title)s.%(ext)s',
|
||||
'YTDL_OPTIONS': '{}',
|
||||
|
||||
@@ -184,8 +184,8 @@ class DownloadQueue:
|
||||
def __init__(self, config, notifier):
|
||||
self.config = config
|
||||
self.notifier = notifier
|
||||
self.queue = PersistentQueue('/queue/queue')
|
||||
self.done = PersistentQueue('/queue/done', True)
|
||||
self.queue = PersistentQueue(self.config.STATE_DIR + '/queue')
|
||||
self.done = PersistentQueue(self.config.STATE_DIR + '/completed', True)
|
||||
self.initialized = False
|
||||
self.imported = False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user