From ff907930fd65976c178109c8838fc7d3515ae12d Mon Sep 17 00:00:00 2001 From: Kade Robertson Date: Thu, 27 Jul 2017 16:14:26 -0400 Subject: [PATCH] renamed some params to be shorter, added to docs --- README.md | 19 +++++++++---------- docs/supportedsites.md | 1 + youtube_dl/YoutubeDL.py | 12 ++++++------ youtube_dl/extractor/common.py | 16 ++++++++++++++++ 4 files changed, 32 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index fe2bebc2a..1067b09dd 100644 --- a/README.md +++ b/README.md @@ -75,8 +75,8 @@ Alternatively, refer to the [developer instructions](#developer-instructions) fo repairs broken URLs, but emits an error if this is not possible instead of searching. --ignore-config Do not read configuration files. When given - in the global configuration file - /etc/youtube-dl.conf: Do not read the user + in the global configuration file /etc + /youtube-dl.conf: Do not read the user configuration in ~/.config/youtube- dl/config (%APPDATA%/youtube-dl/config.txt on Windows) @@ -106,8 +106,8 @@ Alternatively, refer to the [developer instructions](#developer-instructions) fo proxy specified by --proxy (or none, if the options is not present) is used for the actual downloading. - --geo-bypass Bypass geographic restriction via faking - X-Forwarded-For HTTP header (experimental) + --geo-bypass Bypass geographic restriction via faking X + -Forwarded-For HTTP header (experimental) --no-geo-bypass Do not bypass geographic restriction via faking X-Forwarded-For HTTP header (experimental) @@ -247,12 +247,11 @@ Alternatively, refer to the [developer instructions](#developer-instructions) fo jar in --cache-dir DIR Location in the filesystem where youtube-dl can store some downloaded information - permanently. By default - $XDG_CACHE_HOME/youtube-dl or - ~/.cache/youtube-dl . At the moment, only - YouTube player files (for videos with - obfuscated signatures) are cached, but that - may change. + permanently. By default $XDG_CACHE_HOME + /youtube-dl or ~/.cache/youtube-dl . At the + moment, only YouTube player files (for + videos with obfuscated signatures) are + cached, but that may change. --no-cache-dir Disable filesystem caching --rm-cache-dir Delete all filesystem cache files diff --git a/docs/supportedsites.md b/docs/supportedsites.md index eb09c470c..a532cc765 100644 --- a/docs/supportedsites.md +++ b/docs/supportedsites.md @@ -533,6 +533,7 @@ - **nhl.com:videocenter:category**: NHL videocenter category - **nick.com** - **nick.de** + - **nickelodeonru** - **nicknight** - **niconico**: ニコニコ動画 - **NiconicoPlaylist** diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py index 6f987e62c..200e4917f 100755 --- a/youtube_dl/YoutubeDL.py +++ b/youtube_dl/YoutubeDL.py @@ -1463,12 +1463,12 @@ class YoutubeDL(object): info_dict['upload_year'] = upload_date.strftime('%Y') info_dict['upload_month'] = upload_date.strftime('%m') info_dict['upload_day'] = upload_date.strftime('%d') - info_dict['upload_day_of_year'] = upload_date.strftime('%j') - info_dict['upload_week_of_year'] = upload_date.strftime('%U') - info_dict['upload_dayname'] = upload_date.strftime('%A') - info_dict['upload_dayname_a'] = upload_date.strftime('%a') - info_dict['upload_monthname'] = upload_date.strftime('%B') - info_dict['upload_monthname_a'] = upload_date.strftime('%b') + info_dict['upload_dyofyr'] = upload_date.strftime('%j') + info_dict['upload_wkofyr'] = upload_date.strftime('%U') + info_dict['upload_dyn'] = upload_date.strftime('%A') + info_dict['upload_dyn_a'] = upload_date.strftime('%a') + info_dict['upload_mntn'] = upload_date.strftime('%B') + info_dict['upload_mntn_a'] = upload_date.strftime('%b') info_dict['upload_hour24'] = upload_date.strftime('%H') info_dict['upload_hour12'] = upload_date.strftime('%I') info_dict['upload_minute'] = upload_date.strftime('%M') diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index 748b4d59f..24330402e 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -201,6 +201,22 @@ class InfoExtractor(object): timestamp: UNIX timestamp of the moment the video became available. upload_date: Video upload date (YYYYMMDD). If not explicitly set, calculated from timestamp. + upload_year: Year the video was uploaded (YYYY). + upload_month: Month the video was uploaded (MM). + upload_day: Day the video was uploaded (DD). + upload_dyofyr: Day of year the video was uploaded (DDD). + upload_wkofyr: Week of year the video was uploaded (WW). + upload_dyn: Localized day of the week the video was uploaded (Monday). + upload_dyna: Localized abbreviated day of the week the video was uploaded (Mon). + upload_mntn: Localized month of the year the video was uploaded (September). + upload_mntna: Localized abbreviated month of the year the video was uploaded (Sep). + upload_hour24: Hour of the day (24 hour clock) the video was uploaded (HH). + upload_hour12: Hour of the day (12 hour clock) the video was uploaded (hh). + upload_minute: Minute of the hour the video was uploaded (mm). + upload_second: Second of the minute the video was uploaded (ss). + upload_ampm: Localized AM/PM indicator of when video was uploaded (PP). + upload_time24: Time of day (24 hour clock) the video was uploaded (HHmmss). + upload_time12: Time of day (12 hour clock) the video was uploaded (hhmmssPP). uploader_id: Nickname or id of the video uploader. uploader_url: Full URL to a personal webpage of the video uploader. location: Physical location where the video was filmed.