about summary refs log tree commit diff
path: root/youtube_dl/downloader
Commit message (Collapse)AuthorAgeFilesLines
* [external/FFmpeg] Fix and improve --ffmpeg-location handlingdirkf2024-03-271-5/+12
| | | | | | | | * pass YoutubeDL (FileDownloader) to FFmpegPostProcessor constructor * consolidate path search in FFmpegPostProcessor * make availability of FFmpegFD depend on existence of FFmpegPostProcessor * detect ffmpeg executable on instantiation of FFmpegFD * resolves #32735
* [downloader/external] Fix "Resource Warning" in downloader testdirkf2024-03-271-15/+20
| | | | | * add compat_subprocess_Popen context manager * apply context manager in FFmpegFD._call_downloader()
* [downloader/external] Fix WgetFD proxy (rev 2) dirkf2024-02-211-1/+4
| | | | | From PR (defunct source), closes #29343. Matches https://github.com/yt-dlp/yt-dlp/pull/3152 Thx former user kikuyan.
* [downloader/dash] Support `range` in fragment (format f'{start}-{end}')dirkf2024-02-021-2/+7
| | | | | * adapted from https://github.com/ytdl-org/youtube-dl/pull/30279 * thx former GH user kikuyan
* [downloader] Fix baa6c5e: show ETA of http download as ETA instead of total ↵dirkf2023-09-242-2/+2
| | | | d/l time
* [downloader/external] Fix cookie supportbashonly2023-07-182-23/+106
|
* [core] Process header cookies on loadingSimon Sawicki2023-07-181-0/+9
|
* [DashSegmentsFD] Correctly detect errors when `fragment_retries` == 0dirkf2023-04-131-7/+7
| | | | | | | * use the success flag instead of the retry count * establish the fragment_url outside the retry loop * only report skipping a fragment once. * resolves #32033
* [FragmentFD] Fix iteration with infinite limitdirkf2023-04-051-11/+11
| | | | | * fixes ytdl-org/youtube-dl/baa6c5e * resolves #31885
* [downloader/http] Only check for resumability when actually resumingdirkf2023-03-191-1/+2
|
* [FragmentFD] Respect `--no-continue`dirkf2023-03-144-37/+58
| | | | | | | * discard partial fragment on `--no-continue` * continue with correct progress display otherwise Resolves #21467
* [downloader] Let _ffmpeg_ handle DASH segmentsdirkf2023-03-141-1/+1
| | | | Fixes https://github.com/ytdl-org/youtube-dl/issues/31792 after 3da1783.
* [feat]: Add support to external downloader aria2p (#31500)teddy1712023-02-131-0/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * feat: add class Aria2pFD * feat: create call_downloader function * feat: a colorful download interface to aria2pFD * feat: change value name * Apply suggestions from code review Co-authored-by: dirkf <fieldhouse@gmx.net> * Typo in suggestion * fix: remove unused value * fix: add not function to return value(0 is normal); add total_seconds to download.eta(timedelta object); add waiting status when hook progress * fix: remove unuse method ..utils.format_bytes * fix: be up to flake8 * fix: be up to flake8 * Apply suggestions from code review * [feat] test external downloader aria2p * [feat] test external downloader aria2p * [fix] test_external_downloader.py * Apply suggestions from code review Co-authored-by: dirkf <fieldhouse@gmx.net> * Apply suggestions from code review Co-authored-by: dirkf <fieldhouse@gmx.net> * Update test/test_external_downloader.py Co-authored-by: dirkf <fieldhouse@gmx.net> * Update test/test_external_downloader.py Co-authored-by: dirkf <fieldhouse@gmx.net> * Update youtube_dl/downloader/external.py Co-authored-by: dirkf <fieldhouse@gmx.net> * refactoring code and fix bugs * Apply suggestions from code review * Rename test_external_downloader.py to test_downloader_external.py --------- Co-authored-by: dirkf <fieldhouse@gmx.net>
* [utils, etc] Kill child processes when yt-dl is killedpukkandan2022-06-102-10/+16
| | | | | | * derived from PR #26592, closes #26592 Authored by: Unrud
* Ignore --external-downloader-args if --external-downloader was rejecteddirkf2022-03-251-0/+3
| | | | ... and generate warning
* [niconico] Implement heartbeat for downloaddirkf2022-02-052-8/+83
|
* [downloader/hls] Disable decryption in tests (#27660)Kevin O'Connor2021-01-051-2/+6
| | | | | | | | Tests truncate the download to 10241 bytes, which is not divisible by 16 and cannot be decrypted. Tests don't really care about the decrypted content, just that the data they retrieved is the expected data. Therefore, it's fine to just return the encrypted data to tests. See: #27621 and #27620
* [downloader/hls] delegate manifests with media initialization to ffmpegRemita Amine2020-12-131-0/+2
|
* [downloader/fragment] Set final file's mtime according to last fragment's ↵Sergey M․2020-11-241-2/+12
| | | | Last-Modified header (closes #11718, closes #18384, closes #27138)
* [downloader/http] Fix crash during urlopen caused by missing reason of URLErrorSergey M․2020-11-211-1/+3
|
* [downloader/http] Properly handle missing message in SSLError (closes #26646)Sergey M․2020-09-221-1/+1
|
* [downloader/http] Fix access to not yet opened stream in retrySergey M․2020-09-221-3/+4
|
* [downloader/hls] Fix incorrect end byte in Range HTTP header for media ↵Stefan Pöschel2020-09-181-1/+1
| | | | | | | | | | segments with EXT-X-BYTERANGE (#24512) (closes #14748) The end of the byte range is the first byte that is NOT part of the to be downloaded range. So don't include it into the requested HTTP download range, as this additional byte leads to a broken TS packet and subsequently to e.g. visible video corruption. Fixes #14748.
* [downloader/http] Improve timeout detection when reading block of data (refs ↵Sergey M․2020-09-181-3/+5
| | | | #10935)
* [downloader/http] Retry download when urlopen times out (#26603) (refs #10935)Ori Avtalion2020-09-181-1/+6
|
* [downloader/http] Request last data block of exact remaining sizeSergey M․2020-05-051-1/+1
| | | | Always request last data block of exact size remaining to download if possible not the current block size.
* [downloader/http] Finish downloading once received data length matches expectedSergey M․2020-05-051-1/+1
| | | | | Always do this if possible, i.e. if Content-Length or expected length is known, not only in test. This will save unnecessary last extra loop trying to read 0 bytes.
* [vzaar] override AES decryption key URL(closes #17521)Remita Amine2019-12-031-2/+2
|
* [downloader/external] Respect mtime option for aria2c (#22242)telephono2019-09-011-0/+1
|
* [downloader/fragment] Fix ETA calculation of resumed download (#21992)lightmare2019-08-111-3/+4
|
* Fix typos (#21901)Kitten King2019-07-262-2/+2
|
* [downloader/common] Improve rate limit (#21301)Sergey M․2019-06-051-1/+3
|
* Fix W504 and disable W503 (closes #20863)Sergey M․2019-05-115-22/+22
|
* [download/external] pass rtmp_conn to ffmpegRemita Amine2019-04-021-0/+6
|
* Start moving to ytdl-orgSergey M․2019-03-114-8/+8
|
* [downloader/external] Add support for rate limit and retries for wgetSergey M․2019-02-231-0/+6
|
* [downloader/external] Fix infinite retries for curl (closes #19303)Sergey M․2019-02-231-1/+5
|
* [downloader/hls] fix uplynk ad skipping(closes #18824)Remita Amine2019-01-131-6/+12
|
* [downloader/dash] Improve error handling (#16927)Sergey M․2018-07-081-1/+12
|
* [downloader/rtmp] Fix downloading in verbose mode (closes #16736)Sergey M․2018-06-151-9/+4
|
* [downloader/http] Fix resume when writing ot stdout (closes #16699)Sergey M․2018-06-121-2/+3
|
* [downloader/rtmp] Generalize download messages and report time elapsed on finishSergey M․2018-05-261-2/+5
|
* [downloader/rtmp] Gracefully handle live streams interrupted by userSergey M․2018-05-261-53/+66
|
* Remove experimental mark for some optionsSergey M․2018-05-191-1/+0
|
* [downloader/fragment] Restart download if .ytdl file is corrupt (closes #16312)Sergey M․2018-04-291-5/+16
|
* [downloader/external] Simplify finished progress hook reporting and add ↵Sergey M․2018-03-241-10/+11
| | | | elapsed time (closes #10876)
* [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-242-13/+21
| | | | | | | | | (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/fragment] Fix download finalization when writing file to stdout ↵Sergey M․2018-03-241-4/+8
| | | | (closes #15799)
* [downloader/hls] Skip uplynk ad fragments (closes #15748)Sergey M․2018-03-031-4/+5
|