[core] add option to trim file name length with integer

https://github.com/blackjack4494/youtube-dlc/issues/85
This commit is contained in:
Unknown
2020-09-30 05:50:09 +02:00
parent 6923b5381f
commit bdc3fd2f35
3 changed files with 16 additions and 1 deletions

View File

@@ -775,6 +775,9 @@ def parseOpts(overrideArguments=None):
'--rm-cache-dir',
action='store_true', dest='rm_cachedir',
help='Delete all filesystem cache files')
filesystem.add_option(
'--trim-file-name', dest='trim_file_name', default=0, type=int,
help='Limit the filename length (extension excluded)')
thumbnail = optparse.OptionGroup(parser, 'Thumbnail images')
thumbnail.add_option(