diff options
author | Unknown <blackjack4494@web.de> | 2020-09-30 05:50:09 +0200 |
---|---|---|
committer | Unknown <blackjack4494@web.de> | 2020-09-30 05:50:09 +0200 |
commit | bdc3fd2f35c67c513dfc2843d5168f905d7bd5c8 (patch) | |
tree | d0f909a00a17c23e0921af2e9f0041f1ea328480 /youtube_dlc/options.py | |
parent | 6923b5381fe9fe4b8d120d883b41a22e99f52f63 (diff) | |
download | hypervideo-pre-bdc3fd2f35c67c513dfc2843d5168f905d7bd5c8.tar.lz hypervideo-pre-bdc3fd2f35c67c513dfc2843d5168f905d7bd5c8.tar.xz hypervideo-pre-bdc3fd2f35c67c513dfc2843d5168f905d7bd5c8.zip |
[core] add option to trim file name length with integer
https://github.com/blackjack4494/youtube-dlc/issues/85
Diffstat (limited to 'youtube_dlc/options.py')
-rw-r--r-- | youtube_dlc/options.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube_dlc/options.py b/youtube_dlc/options.py index e0651b7ba..1d7a7fed2 100644 --- a/youtube_dlc/options.py +++ b/youtube_dlc/options.py @@ -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( |