aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/downloader/common.py
AgeCommit message (Collapse)Author
2017-08-27[http] Rework HTTP downloaderSergey M․
* Simplify code and split into separate routines to facilitate maintaining * Make retry mechanism work on errors during actual download not only during connection establishment phase * Retry on ECONNRESET and ETIMEDOUT during reading data from network * Retry on content too short and various timeout errors * Show error description on retry * Closes #506, closes #809, closes #2849, closes #4240, closes #6023, closes #8625, closes #9483
2017-06-17[downloader/common] Use utils.shell_quote for debug command lineSergey M․
2017-04-19[downloader/fragment] use a general file to store fragment download contextRemita Amine
2017-04-19[fragment,hls,f4m,dash,ism] improve fragment downloadingRemita Amine
- resume immediately - no need to concatenate segments and decrypt them on every resume - no need to save temp files for segments and for hls downloader: - no need to download keys for segments that already downloaded
2017-02-25[downloader/common] Limit displaying 2 digits after decimal point in sleep ↵Pratyush Singh
interval message
2016-10-12[downloader/common] Remove debug outputSergey M․
2016-08-09Add more checks for --min/max-sleep-interval arguments and use more ↵Sergey M․
idiomatic naming
2016-08-09Add --max-sleep-interval (Closes #9930)singh-pratyush96
2016-03-19[downloader/{common,fragment}] Fix total retries reporting on python 2.6Sergey M․
2016-03-03[jython] Introduce compat_os_nameYen Chi Hsuan
os.name is always 'java' on Jython
2016-02-14[refactor] Do not specify redundant None as second argument in dict.get()Sergey M․
2016-01-30Add --hls-use-mpegts optionJaime Marquínez Ferrándiz
When using the mpegts container hls vidoes can be played while being downloaded (useful if you are recording a live stream). VLC and mpv play them file, but QuickTime doesn't.
2016-01-22[downloader/common] report_retry: Don't crash when retries is infinite ↵Jaime Marquínez Ferrándiz
(fixes #8299)
2015-12-20Rename error_to_str to error_to_compat_strSergey M․
2015-12-20Properly convert errors to stringsSergey M․
2015-11-20Typo fix, found while going through the code.ashutosh-mishra
2015-10-12[downloader/common] Always skip "already downloaded" check when outputting ↵Sergey M․
to stdout
2015-04-26[downloader/common] Use decodeArgumentSergey M․
2015-03-28Default to continuedl=TruePhilipp Hagemeister
We already do this in the CLI interface, so it should be just fine.
2015-03-27Don't use bare 'except:'Jaime Marquínez Ferrándiz
They catch any exception, including KeyboardInterrupt, we don't want to catch it.
2015-03-02[downloader/external] Add support for custom options (Fixes #4885, closes #5098)Philipp Hagemeister
2015-02-21PEP8: W503Philipp Hagemeister
2015-02-17[YoutubeDL] Use a progress hook for progress reportingPhilipp Hagemeister
Instead of every downloader calling two helper functions, let our progress report be an ordinary progress hook like everyone else's. Closes #4875.
2015-01-25Add --xattr-set-filesize option (Fixes #1348)Philipp Hagemeister
2015-01-24[downloader] Lay groundwork for external downloaders.Philipp Hagemeister
This comes with a very simply implementation for wget; the real work is in setting up the infrastructure.
2015-01-23Merge remote-tracking branch 'rupertbaxter2/master'Philipp Hagemeister
Conflicts: youtube_dl/__init__.py youtube_dl/downloader/common.py
2015-01-11check for overwriting files in the downloader (fixes #3916, closes #3829)Pierre
2014-12-17[downloader] Handle a file ./- (Fixes #4498)Philipp Hagemeister
2014-12-15[YoutubeDL] Add declarative version of progress hooksPhilipp Hagemeister
2014-12-13Fix imports and general cleanupPhilipp Hagemeister
· Import from compat what comes from compat. Yes, some names are available in utils too, but that's an implementation detail. · Use _match_id consistently whenever possible · Fix some outdated tests · Use consistent valid URL (always match the whole protocol, no ^ at start required) · Use modern test definitions
2014-12-12[downloader/common] Do not use classic int divisionPhilipp Hagemeister
2014-12-12Merge remote-tracking branch 'SyxbEaEQ2/rate-limit'Philipp Hagemeister
2014-11-23PEP8 appliedJouke Waleson
2014-11-16[downloader/common] ModernizePhilipp Hagemeister
2014-09-24[hlsnative] Support test parameterPhilipp Hagemeister
2014-08-13Removed sleep and sleep output when interval is zerorupertbaxter2
2014-08-13Merge remote-tracking branch 'upstream/master'rupertbaxter2
2014-08-10[downloader/common] Fix typoSergey M․
2014-08-06 [downloader/common] Fix possible negative sleep time in slow_down()SyxbEaEQ2
2014-08-03Added --sleep-interval optionrupertbaxter2
2014-07-31[downloader/(common/http)] Changes calculation of the rate-limit. (Fix ↵SyxbEaEQ2
#2297, fix #2140, fix #595, fix #2370)
2014-04-04[downloader/common] Use `compat_str` with the error in `try_rename` ↵Jaime Marquínez Ferrándiz
(appeared in #2389) Otherwise on python 2.x we get `UnicodeDecodeError` because it may contain non ascii characters.
2014-01-25Some pep8 style fixesJaime Marquínez Ferrándiz
2013-12-23Remove dead codePhilipp Hagemeister
2013-12-11Move FileDownloader to its own module and create a new class for each ↵Jaime Marquínez Ferrándiz
download process A suitable downloader can be found using the 'get_suitable_downloader' function. Each subclass implements 'real_download', for downloading an info dict you call the 'download' method, which first checks if the video has already been downloaded