aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl/downloader/common.py
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Some pep8 style fixesJaime Marquínez Ferrándiz2014-01-251-1/+0
|
* Remove dead codePhilipp Hagemeister2013-12-231-7/+3
|
* Move FileDownloader to its own module and create a new class for each ↵Jaime Marquínez Ferrándiz2013-12-111-0/+321
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