mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-10-29 18:00:15 +00:00
Add a config option to preserve spaces in file names (#201)
* Add a config option to preserve spaces in file names * Typo * Fix replacing in path
This commit is contained in:
committed by
Ritiek Malhotra
parent
e283231f8e
commit
1fe94c9896
@@ -19,6 +19,7 @@ default_conf = { 'spotify-downloader':
|
||||
'download-only-metadata' : False,
|
||||
'dry-run' : False,
|
||||
'music-videos-only' : False,
|
||||
'preserve-spaces' : False,
|
||||
'log-level' : 'INFO' }
|
||||
}
|
||||
|
||||
@@ -107,6 +108,10 @@ def get_arguments(to_group=True, raw_args=None):
|
||||
'-mo', '--music-videos-only', default=config['music-videos-only'],
|
||||
help='Search only for music on Youtube',
|
||||
action='store_true')
|
||||
parser.add_argument(
|
||||
'-ps', '--preserve-spaces', default=config['preserve-spaces'],
|
||||
help='Preserve spaces on file names',
|
||||
action='store_true')
|
||||
parser.add_argument(
|
||||
'-ll', '--log-level', default=config['log-level'],
|
||||
choices=_LOG_LEVELS_STR,
|
||||
|
||||
Reference in New Issue
Block a user