Add options to customize output filename

This commit is contained in:
hygienic-books 2022-03-19 01:50:05 +01:00
parent 25d0059f14
commit e02c0bf52e
2 changed files with 7 additions and 1 deletions

View File

@ -10,6 +10,9 @@ mvw_endpoint = http://localhost:8000/api/query
title_dedup_winner = first
dl_progress_update_interval = 10
dl_threads = 2
dl_filename_pattern = &(channel)s - &(publish_date)s - &(topic)s - &(title)s.&(ext)s
dl_filename_spaces_to_underscores = yes
dl_filename_all_lowercase = yes
[maus]
min_duration = 1200

View File

@ -90,7 +90,10 @@ class CONST(object):
{"key": "mvw_endpoint", "value": "http://localhost:8000/api/query"},
{"key": "title_dedup_winner", "value": "first"},
{"key": "dl_progress_update_interval", "value": "10"},
{"key": "dl_threads", "value": "2"}
{"key": "dl_threads", "value": "2"},
{"key": "dl_filename_pattern", "value": "&(channel)s - &(publish_date)s - &(topic)s - &(title)s"},
{"key": "dl_filename_spaces_to_underscores", "value": "yes"},
{"key": "dl_filename_all_lowercase", "value": "yes"}
]
CFG_KNOWN_SECTION = [
{"key": "min_duration", "is_mandatory": False},