mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-25 22:46:34 +00:00
directory mode on settings
This commit is contained in:
parent
0fafca037c
commit
279a01f9bc
@ -112,6 +112,15 @@ DOWNLOAD_VIDEO_DIR = 'video'
|
||||
DOWNLOAD_AUDIO_DIR = 'audio'
|
||||
SASS_PROCESSOR_ROOT = STATIC_ROOT
|
||||
|
||||
directory_mode = os.getenv("TUBESYNC_DIRECTORY_MODE", "default")
|
||||
if directory_mode == 'flat':
|
||||
DOWNLOAD_VIDEO_DIR = '.'
|
||||
DOWNLOAD_AUDIO_DIR = '.'
|
||||
elif directory_mode.startswith("custom:"):
|
||||
custom_value = directory_mode.split(":")[1]
|
||||
if str(',') in custom_value:
|
||||
DOWNLOAD_AUDIO_DIR, DOWNLOAD_VIDEO_DIR = custom_value.split(',')
|
||||
|
||||
|
||||
ROBOTS = '''
|
||||
User-agent: *
|
||||
|
Loading…
Reference in New Issue
Block a user