Commit Graph

259 Commits (7df286540f893f7fbba07da8ba3b09dd7c9027c4)

Author SHA1 Message Date
Jaime Marquínez Ferrándiz b5936c0059 Document the %(format_id)s field for the output template
Jaime Marquínez Ferrándiz 3126050c0f Hide the video password on verbose mode
Philipp Hagemeister 41fd7c7e60 Add new option --abort-on-error
Philipp Hagemeister fdefe96bf2 Document %(format)s ()
Philipp Hagemeister cce722b79c Add metavar to --cache-dir
Philipp Hagemeister 1c1218fefc Merge remote-tracking branch 'jaimeMF/format_selection'
Philipp Hagemeister cd054fc491 Use upper-case for prefixes in help to signify bytes ()
Philipp Hagemeister f219743e33 Merge remote-tracking branch 'alphapapa/master'
Philipp Hagemeister a4fd04158e Do not import *
Philipp Hagemeister a623df4c7b Credit @Elbandi for sztvhu
Jai Grimshaw 1fb07d10a3 [youtube] Adds Download annotations
Adds  Download annotations from youtube
Annotations are downloaded and written to a .annotations.xml file using the https://www.youtube.com/annotations_invideo?features=1&legacy=1&video_id=$VIDEOID API.
Added unit test for annotations.
Jaime Marquínez Ferrándiz dd82ffea0c Implement format selection in YoutubeDL
Now the IEs can set a formats field in the info_dict, with the formats ordered from worst to best quality. It's a list of dicts with the following fields:
* Mandatory: url and ext
* Optional: format and format_id

The format_id is used for choosing which formats have to be downloaded.

Now a video result is processed by the method process_video_result.
Jaime Marquínez Ferrándiz bc4f29170f Add a PostProcessor for adding metadata to the file (closes )
It currently sets the title, the date and the author values.
Jaime Marquínez Ferrándiz 2ae3edb1cf Fix the printing of the proxy map in debug mode
The proxies have to be extracted from the opener.handlers
Philipp Hagemeister a27b9e8bd5 Move opener setup into a separate helper function
Philipp Hagemeister 15870e90b0 Restore warning when user forgets to quote URL ()
Philipp Hagemeister b24f347190 Merge branch 'download-archive'
Conflicts:
	youtube_dl/YoutubeDL.py
	youtube_dl/__init__.py
Philipp Hagemeister 8dbe9899a9 Allow users to specify an age limit (fixes )
With these changes, users can now restrict what videos are downloaded by the intented audience, by specifying their age with --age-limit YEARS .
Add rudimentary support in youtube, pornotube, and youporn.
Philipp Hagemeister c1c9a79c49 Add basic --download-archive option
Often, users want to be able to download only videos they haven't seen before, despite the video files having been deleted or moved in the mean time.
When --download-archive FILE is given, the extractor and ID of every download is recorded in the specified file. If it is already present, the video in question is skipped.
Philipp Hagemeister be8fe32c92 Fix help of --cachedir
Philipp Hagemeister c38b1e776d [youtube] Simplify cache_dir code ()
Philipp Hagemeister 4f8bf17f23 Merge remote-tracking branch 'holomorph/master'
Mark Oteiza fa55675593 Support XDG base directory specification
Filippo Valsorda 47192f92d8 implement --no-playlist to only download current video - closes
Philipp Hagemeister 46353f6783 [update] Look for .exe extension on Windows (Fixes )
Philipp Hagemeister 29c7a63df8 Remove debugging code
Philipp Hagemeister 7f74773254 Add option --no-cache-dir
Philipp Hagemeister c3c88a2664 Allow opts.cachedir == None to disable cache
Philipp Hagemeister f8061589e6 [youtube] Actually pass in cachedir option
Philipp Hagemeister edf3e38ebd [youtube] Improve cache and add an option to print the extracted signatures
Philipp Hagemeister b61067fa4f Abort if extractaudio is given without a variable extension ()
Philipp Hagemeister 2dad310e2c Credit @Ruirize for newgrounds
Philipp Hagemeister 830dd1944a Clarify -i help ()
Philipp Hagemeister 7459e3a290 Always correct encoding when writing to sys.stderr (Fixes )
Jaime Marquínez Ferrándiz 0b7f31184d Now --all-sub is a modifier to --write-sub and --write-auto-sub (closes )
For keeping backwards compatibility --all-sub sets --write-sub if --write-auto-sub is not given
Jaime Marquínez Ferrándiz ac4f319ba1 Credit @iemejia
Ismael Mejia 72836fcee4 Merge branch 'master' into subtitles_rework
Ismael Mejia d6e203b3dc [subtitles] fixed multiple subtitles language separated by comma after merge
As mentioned in the pull request, I forgot to include this changes.
aa6a10c44a
Jaime Marquínez Ferrándiz 085bea4513 Credit @Huarong for tv.sohu.com
Allan Zhou bdc6b3fc64 add support for "-f mp4" for YouTube
Jaime Marquínez Ferrándiz 920ef0779b Hide the password and username in verbose mode (closes )
Philipp Hagemeister c496ca96e7 Fix platform name in Python 2 with --verbose (Closes )
Ismael Mejia 06a401c845 Merge branch 'master' into subtitles_rework
Philipp Hagemeister 88a79ce6a6 Delete default user agent (Fixes )
Jaime Marquínez Ferrándiz aa6a10c44a Allow to specify multiple subtitles languages separated by commas (closes )
Jaime Marquínez Ferrándiz d4051a8e05 Add a post processor for embedding subtitles in mp4 videos (closes )
Ismael Mejia 18b4e04f1c Merge branch 'master' into subtitles_rework
Ismael Mejia 1865ed31b9 [subtitles] separated subtitle options in their own group
Jaime Marquínez Ferrándiz 4a55479fa9 Credit Pierre Rudloff for JeuxVideoIE and UnistraIE
Ismael Mejia 33eb0ce4c4 [subtitles] removed only-sub option (--skip-download achieves the same
functionality)