aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl/downloader/common.py
Commit message (Collapse)AuthorAgeFilesLines
* update from upstreamJesús2021-10-181-391/+0
|
* [downloader/common] Improve rate limit (#21301)Sergey M․2019-06-051-1/+3
|
* Fix W504 and disable W503 (closes #20863)Sergey M․2019-05-111-5/+5
|
* Remove experimental mark for some optionsSergey M․2018-05-191-1/+0
|
* [downloader/common] Improve progress reporting when no total bytes availableSergey M․2018-03-241-3/+2
|
* [downloader/external] Fix download finalization when writing file to stdout ↵John Hawkinson2018-03-241-4/+6
| | | | | | | | | (closes #10809) An OSError or IOError generally indicates something a little more wrong than a "simple" UnavailableVideoError, so print the actual traceback that leads to the exception. Otherwise meaningful postmortem debugging a bug report is essentially infeasible.
* [downloader/common] Add whitespaceSergey M․2018-02-171-1/+1
|
* Document http_chunk_sizeSergey M․2018-02-041-0/+3
|
* [http] Rework HTTP downloaderSergey M․2017-08-271-3/+3
| | | | | | | | | * 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
* [downloader/common] Use utils.shell_quote for debug command lineSergey M․2017-06-171-6/+2
|
* [downloader/fragment] use a general file to store fragment download contextRemita Amine2017-04-191-0/+3
|
* [fragment,hls,f4m,dash,ism] improve fragment downloadingRemita Amine2017-04-191-15/+16
| | | | | | | | | - 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
* [downloader/common] Limit displaying 2 digits after decimal point in sleep ↵Pratyush Singh2017-02-251-1/+4
| | | | interval message
* [downloader/common] Remove debug outputSergey M․2016-10-121-1/+0
|
* Add more checks for --min/max-sleep-interval arguments and use more ↵Sergey M․2016-08-091-4/+5
| | | | idiomatic naming
* Add --max-sleep-interval (Closes #9930)singh-pratyush962016-08-091-2/+5
|
* [downloader/{common,fragment}] Fix total retries reporting on python 2.6Sergey M․2016-03-191-1/+7
|
* [jython] Introduce compat_os_nameYen Chi Hsuan2016-03-031-1/+2
| | | | os.name is always 'java' on Jython
* [refactor] Do not specify redundant None as second argument in dict.get()Sergey M․2016-02-141-1/+1
|
* Add --hls-use-mpegts optionJaime Marquínez Ferrándiz2016-01-301-0/+1
| | | | | 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.
* [downloader/common] report_retry: Don't crash when retries is infinite ↵Jaime Marquínez Ferrándiz2016-01-221-1/+1
| | | | (fixes #8299)
* Rename error_to_str to error_to_compat_strSergey M․2015-12-201-2/+2
|
* Properly convert errors to stringsSergey M․2015-12-201-2/+2
|
* Typo fix, found while going through the code.ashutosh-mishra2015-11-201-1/+1
|
* [downloader/common] Always skip "already downloaded" check when outputting ↵Sergey M․2015-10-121-1/+1
| | | | to stdout
* [downloader/common] Use decodeArgumentSergey M․2015-04-261-8/+5
|
* Default to continuedl=TruePhilipp Hagemeister2015-03-281-1/+1
| | | | We already do this in the CLI interface, so it should be just fine.
* Don't use bare 'except:'Jaime Marquínez Ferrándiz2015-03-271-1/+1
| | | | They catch any exception, including KeyboardInterrupt, we don't want to catch it.
* [downloader/external] Add support for custom options (Fixes #4885, closes #5098)Philipp Hagemeister2015-03-021-0/+2
|
* PEP8: W503Philipp Hagemeister2015-02-211-5/+5
|
* [YoutubeDL] Use a progress hook for progress reportingPhilipp Hagemeister2015-02-171-32/+55
| | | | | Instead of every downloader calling two helper functions, let our progress report be an ordinary progress hook like everyone else's. Closes #4875.
* Add --xattr-set-filesize option (Fixes #1348)Philipp Hagemeister2015-01-251-15/+17
|
* [downloader] Lay groundwork for external downloaders.Philipp Hagemeister2015-01-241-0/+21
| | | | This comes with a very simply implementation for wget; the real work is in setting up the infrastructure.
* Merge remote-tracking branch 'rupertbaxter2/master'Philipp Hagemeister2015-01-231-0/+6
|\ | | | | | | | | | | Conflicts: youtube_dl/__init__.py youtube_dl/downloader/common.py
| * Removed sleep and sleep output when interval is zerorupertbaxter22014-08-131-2/+3
| |
| * Merge remote-tracking branch 'upstream/master'rupertbaxter22014-08-131-1/+1
| |\
| * | Added --sleep-interval optionrupertbaxter22014-08-031-0/+3
| | |
* | | check for overwriting files in the downloader (fixes #3916, closes #3829)Pierre2015-01-111-1/+12
| | |
* | | [downloader] Handle a file ./- (Fixes #4498)Philipp Hagemeister2014-12-171-1/+1
| | |
* | | [YoutubeDL] Add declarative version of progress hooksPhilipp Hagemeister2014-12-151-15/+2
| | |
* | | Fix imports and general cleanupPhilipp Hagemeister2014-12-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | · 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
* | | [downloader/common] Do not use classic int divisionPhilipp Hagemeister2014-12-121-1/+1
| | |
* | | Merge remote-tracking branch 'SyxbEaEQ2/rate-limit'Philipp Hagemeister2014-12-121-3/+6
|\ \ \
| * | | [downloader/common] Fix possible negative sleep time in slow_down()SyxbEaEQ22014-08-061-1/+1
| | | |
| * | | [downloader/(common/http)] Changes calculation of the rate-limit. (Fix ↵SyxbEaEQ22014-07-311-6/+9
| |/ / | | | | | | | | | #2297, fix #2140, fix #595, fix #2370)
* | | PEP8 appliedJouke Waleson2014-11-231-3/+3
| | |
* | | [downloader/common] ModernizePhilipp Hagemeister2014-11-161-21/+23
| | |
* | | [hlsnative] Support test parameterPhilipp Hagemeister2014-09-241-0/+1
| |/ |/|
* | [downloader/common] Fix typoSergey M․2014-08-101-1/+1
|/
* [downloader/common] Use `compat_str` with the error in `try_rename` ↵Jaime Marquínez Ferrándiz2014-04-041-2/+3
| | | | | | (appeared in #2389) Otherwise on python 2.x we get `UnicodeDecodeError` because it may contain non ascii characters.