From 946745f068a5c78ddc3f7c11e325a22eb29283b0 Mon Sep 17 00:00:00 2001 From: cousteau Date: Mon, 19 Oct 2015 01:53:07 +0200 Subject: [PATCH] Format specs for {autonumber} and {upload_date} {autonumber} and {playlist_index} are now integers rather than strings, so {autonumber:02} works and you don't need --autonumber-size. (Actually, they're "special integers" that get printed to a predefined fixed width if you leave the :02 out; see the _Int_digits class.) {upload_date} is now a datetime.date, so {upload_date:%b %Y} will format as "Oct 2015" (default is "2015-10-19"). sanitize() gets applied only to string values, not to numeric ones (or dates or lists or...) --- youtube_dl/options.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/youtube_dl/options.py b/youtube_dl/options.py index 983911817..f48dc3763 100644 --- a/youtube_dl/options.py +++ b/youtube_dl/options.py @@ -276,7 +276,7 @@ def parseOpts(overrideArguments=None): 'For example, to only match videos that have been liked more than ' '100 times and disliked less than 50 times (or the dislike ' 'functionality is not available at the given service), but who ' - 'also have a description, use --match-filter ' + 'also have a description, use --match-filter ' '"like_count > 100 & dislike_count