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:
Miguel Piedrafita
2018-01-15 09:11:11 +01:00
committed by Ritiek Malhotra
parent e283231f8e
commit 1fe94c9896
3 changed files with 11 additions and 12 deletions

View File

@@ -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,