1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-02-03 23:03:01 +08:00

renamed some params to be shorter, added to docs

This commit is contained in:
Kade Robertson 2017-07-27 16:14:26 -04:00
parent e53d11b008
commit ff907930fd
4 changed files with 32 additions and 16 deletions

View File

@ -75,8 +75,8 @@ Alternatively, refer to the [developer instructions](#developer-instructions) fo
repairs broken URLs, but emits an error if repairs broken URLs, but emits an error if
this is not possible instead of searching. this is not possible instead of searching.
--ignore-config Do not read configuration files. When given --ignore-config Do not read configuration files. When given
in the global configuration file in the global configuration file /etc
/etc/youtube-dl.conf: Do not read the user /youtube-dl.conf: Do not read the user
configuration in ~/.config/youtube- configuration in ~/.config/youtube-
dl/config (%APPDATA%/youtube-dl/config.txt dl/config (%APPDATA%/youtube-dl/config.txt
on Windows) on Windows)
@ -106,8 +106,8 @@ Alternatively, refer to the [developer instructions](#developer-instructions) fo
proxy specified by --proxy (or none, if the proxy specified by --proxy (or none, if the
options is not present) is used for the options is not present) is used for the
actual downloading. actual downloading.
--geo-bypass Bypass geographic restriction via faking --geo-bypass Bypass geographic restriction via faking X
X-Forwarded-For HTTP header (experimental) -Forwarded-For HTTP header (experimental)
--no-geo-bypass Do not bypass geographic restriction via --no-geo-bypass Do not bypass geographic restriction via
faking X-Forwarded-For HTTP header faking X-Forwarded-For HTTP header
(experimental) (experimental)
@ -247,12 +247,11 @@ Alternatively, refer to the [developer instructions](#developer-instructions) fo
jar in jar in
--cache-dir DIR Location in the filesystem where youtube-dl --cache-dir DIR Location in the filesystem where youtube-dl
can store some downloaded information can store some downloaded information
permanently. By default permanently. By default $XDG_CACHE_HOME
$XDG_CACHE_HOME/youtube-dl or /youtube-dl or ~/.cache/youtube-dl . At the
~/.cache/youtube-dl . At the moment, only moment, only YouTube player files (for
YouTube player files (for videos with videos with obfuscated signatures) are
obfuscated signatures) are cached, but that cached, but that may change.
may change.
--no-cache-dir Disable filesystem caching --no-cache-dir Disable filesystem caching
--rm-cache-dir Delete all filesystem cache files --rm-cache-dir Delete all filesystem cache files

View File

@ -533,6 +533,7 @@
- **nhl.com:videocenter:category**: NHL videocenter category - **nhl.com:videocenter:category**: NHL videocenter category
- **nick.com** - **nick.com**
- **nick.de** - **nick.de**
- **nickelodeonru**
- **nicknight** - **nicknight**
- **niconico**: ニコニコ動画 - **niconico**: ニコニコ動画
- **NiconicoPlaylist** - **NiconicoPlaylist**

View File

@ -1463,12 +1463,12 @@ class YoutubeDL(object):
info_dict['upload_year'] = upload_date.strftime('%Y') info_dict['upload_year'] = upload_date.strftime('%Y')
info_dict['upload_month'] = upload_date.strftime('%m') info_dict['upload_month'] = upload_date.strftime('%m')
info_dict['upload_day'] = upload_date.strftime('%d') info_dict['upload_day'] = upload_date.strftime('%d')
info_dict['upload_day_of_year'] = upload_date.strftime('%j') info_dict['upload_dyofyr'] = upload_date.strftime('%j')
info_dict['upload_week_of_year'] = upload_date.strftime('%U') info_dict['upload_wkofyr'] = upload_date.strftime('%U')
info_dict['upload_dayname'] = upload_date.strftime('%A') info_dict['upload_dyn'] = upload_date.strftime('%A')
info_dict['upload_dayname_a'] = upload_date.strftime('%a') info_dict['upload_dyn_a'] = upload_date.strftime('%a')
info_dict['upload_monthname'] = upload_date.strftime('%B') info_dict['upload_mntn'] = upload_date.strftime('%B')
info_dict['upload_monthname_a'] = upload_date.strftime('%b') info_dict['upload_mntn_a'] = upload_date.strftime('%b')
info_dict['upload_hour24'] = upload_date.strftime('%H') info_dict['upload_hour24'] = upload_date.strftime('%H')
info_dict['upload_hour12'] = upload_date.strftime('%I') info_dict['upload_hour12'] = upload_date.strftime('%I')
info_dict['upload_minute'] = upload_date.strftime('%M') info_dict['upload_minute'] = upload_date.strftime('%M')

View File

@ -201,6 +201,22 @@ class InfoExtractor(object):
timestamp: UNIX timestamp of the moment the video became available. timestamp: UNIX timestamp of the moment the video became available.
upload_date: Video upload date (YYYYMMDD). upload_date: Video upload date (YYYYMMDD).
If not explicitly set, calculated from timestamp. 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_id: Nickname or id of the video uploader.
uploader_url: Full URL to a personal webpage of the video uploader. uploader_url: Full URL to a personal webpage of the video uploader.
location: Physical location where the video was filmed. location: Physical location where the video was filmed.