aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/downloader/fragment.py
Commit message (Collapse)AuthorAgeFilesLines
* [compat, networking] Deprecate old functions (#2861)coletdjnz2023-07-151-12/+7
| | | | Authored by: coletdjnz, pukkandan
* [cleanup] Miscpukkandan2023-07-061-3/+1
|
* [downloader/fragment] Do not sleep between fragmentspukkandan2023-06-211-0/+3
| | | | Closes #6599
* Bugfixes for 4823ec9f461512daa1b8ab362893bb86a6320b26Simon Sawicki2023-05-251-2/+2
| | | | | | Hotfix for fragmented downloads Authored by: bashonly
* Update to ytdl-commit-d1c6c5pukkandan2023-05-241-13/+20
| | | | | | | | | | | [YouTube] [core] Improve platform debug log, based on yt-dlp https://github.com/ytdl-org/youtube-dl/commit/d1c6c5c4d618fa950813c0c71aede34a5ac851e9 Except: * 6ed34338285f722d0da312ce0af3a15a077a3e2a [jsinterp] Add short-cut evaluation for common expression * There was no performance improvement when tested with https://github.com/ytdl-org/youtube-dl/issues/30641 * e8de54bce50f6f77a4d7e8e80675f7003d5bf630 [core] Handle `/../` sequences in HTTP URLs * We plan to implement this differently
* [devscripts/cli_to_api] Add scriptpukkandan2023-05-241-2/+2
|
* [cleanup] Miscpukkandan2023-02-281-1/+1
|
* [extractor/youtube] Fix 5038f6d713303e0967d002216e7a88652401c22apukkandan2023-02-281-1/+2
| | | | | | | * [fragment] Fix `request_data` * [youtube] Don't use POST for now. It may be easier to break in future Authored by: bashonly, coletdjnz
* [utils] `traverse_obj`: Fix more bugsSimon Sawicki2023-02-101-1/+1
| | | | | | and cleanup uses of `default=[]` Continued from b1bde57bef878478e3503ab07190fd207914ade9
* [downloader/hls] Allow extractors to provide AES key (#6158)bashonly2023-02-081-1/+2
| | | | | | | | and related cleanup Authored by: bashonly, Grub4K Co-authored-by: Simon Sawicki <contact@grub4k.xyz>
* [downloader/fragment] HLS download can continue without first fragmentpukkandan2022-10-181-24/+25
| | | | Closes #5274
* [utils] Add `deprecation_warning`pukkandan2022-08-301-2/+2
| | | | See https://github.com/yt-dlp/yt-dlp/pull/2173#issuecomment-1097021515
* Standardize retry mechanism (#1649)pukkandan2022-08-021-29/+22
| | | | | | | * [utils] Create `RetryManager` * Migrate all retries to use the manager * [extractor] Add wrapper methods for convenience * Standardize console messages for retries * Add `--retry-sleep` for extractors
* [compat] Remove more functionspukkandan2022-06-251-3/+5
| | | | Removing any more will require changes to a large number of extractors
* [cleanup] Misc fixespukkandan2022-06-221-1/+1
|
* [dash] Show fragment count with `--live-from-start` (#3493)MMM2022-06-071-0/+4
| | | Authored by: flashdagger
* [cleanup] Misc fixespukkandan2022-06-031-6/+14
| | | | | | Cherry-picks from: #3498, #3947 Related: #3949, https://github.com/yt-dlp/yt-dlp/issues/1839#issuecomment-1140313836 Authored by: pukkandan, flashdagger, gamer191
* Bugfix for 23326151c45b632c3d5948bd018e80abb370e676pukkandan2022-05-201-12/+5
|
* Add option --retry-sleep (#3059)pukkandan2022-05-191-4/+1
| | | | Closes #2852
* [cleanup] Misc fixes (see desc)pukkandan2022-05-011-1/+1
| | | | | | | | * Do not warn when fixup is skipped for existing file * [fragment] Fix `--skip-unavailable-fragments` for HTTP Errors * [utils] write_string: Fix bug in 59f943cd5097e9bdbc3cb3e6b5675e43d369341a * [utils] parse_codecs: Subtitle codec is generally referred to as `scodec`. https://github.com/yt-dlp/yt-dlp/pull/2174#discussion_r790156048 * [docs] Remove note about permissions. Closes #3597
* [cleanup] Misc fixespukkandan2022-04-291-8/+4
| | | | Closes #3565, https://github.com/yt-dlp/yt-dlp/issues/3514#issuecomment-1105944364
* [cleanup] Misc cleanup and refactor (#2173)pukkandan2022-04-181-4/+4
|
* [downloader/fragment] Make single thread download work for --live-from-start ↵Lesmiscore (Naoya Ozaki)2022-04-161-2/+7
| | | | | (#3446) Authored by: Lesmiscore
* Fix `--skip-unavailable-fragments`pukkandan2022-04-151-0/+2
| | | | | Bug in d71fd412495af9ebccef807379859a0baa97ddee Closes #3437
* Do not change fragment chunk-size when `--test`pukkandan2022-04-151-1/+1
| | | | Closes #3434
* [cleanup] Sort importspukkandan2022-04-121-6/+2
| | | | | | Using https://github.com/PyCQA/isort isort -m VERTICAL_HANGING_INDENT --py 36 -l 80 --rr -n --tc .
* [cleanup] Upgrade syntaxpukkandan2022-04-121-6/+2
| | | | | | | | | | Using https://github.com/asottile/pyupgrade 1. `__future__` imports and `coding: utf-8` were removed 2. Files were rewritten with `pyupgrade --py36-plus --keep-percent-format` 3. f-strings were cherry-picked from `pyupgrade --py36-plus` Extractors are left untouched (except removing header) to avoid unnecessary merge conflicts
* [cleanup] Misc fixespukkandan2022-04-051-13/+11
| | | | | | Closes https://github.com/yt-dlp/yt-dlp/pull/3213, Closes https://github.com/yt-dlp/yt-dlp/pull/3117 Related: https://github.com/yt-dlp/yt-dlp/issues/3146#issuecomment-1077323114, https://github.com/yt-dlp/yt-dlp/pull/3277#discussion_r841019671, https://github.com/yt-dlp/yt-dlp/commit/a825ffbffa0bea322e3ccb44c6f8e01d8d9572fb#commitcomment-68538986, https://github.com/yt-dlp/yt-dlp/issues/2360, https://github.com/yt-dlp/yt-dlp/commit/5fa3c9a88f597625296981a4a26be723e65d4842#r70393519, https://github.com/yt-dlp/yt-dlp/commit/5fa3c9a88f597625296981a4a26be723e65d4842#r70393254
* [fragment] Read downloaded fragments only when needed (#3069)Lesmiscore (Naoya Ozaki)2022-03-151-26/+20
| | | Authored by: Lesmiscore
* [downloader] Obey `--file-access-retries` when deleting/renaming (#2224)Emanuel Hoogeveen2022-03-031-2/+2
| | | Authored by: ehoogeveen-medweb
* [downloader/fragment] Fix bugs around resuming with Range (#2901)Lesmiscore (Naoya Ozaki)2022-02-281-1/+1
| | | Authored by: Lesmiscore
* [downloader/fragment] Ignore `FileNotFoundError` when downloading livestreamsLesmiscore2022-02-261-1/+6
| | | | | | when `--live-from-start` is used for YouTube and the live ends, request for the last segment prematurely ends (or 404, 403). this is causing lack of the file and `FileNotFoundError` lacking segment doesn't have any data, so it's safe to ignore
* [downloader/fragment] Fix problem where multiple threads can share one iteratorLesmiscore2022-02-251-8/+7
| | | | | | which causes "ValueError: generator already executing" error Closes #2881
* [downloader/fragment] Improve `--live-from-start` for YouTube livestreams ↵Lesmiscore (Naoya Ozaki)2022-02-251-10/+30
| | | | (#2870)
* [aes] Add unpad_pkcs7pukkandan2022-02-011-3/+2
|
* [youtube] End `live-from-start` properly when stream ends with 403pukkandan2021-12-261-0/+2
| | | | Closes #2089
* Add option `--file-access-retries` (#2066)Emanuel Hoogeveen2021-12-231-5/+4
| | | | Closes #517 Authored by: ehoogeveen-medweb
* [dash,youtube] Download live from start to end (#888)The Hatsune Daishi2021-12-201-10/+37
| | | | | | | | | | | | | | | * Add option `--live-from-start` to enable downloading live videos from start * Add key `is_from_start` in formats to identify formats (of live videos) that downloads from start * [dash] Create protocol `http_dash_segments_generator` that allows a function to be passed instead of fragments * [fragment] Allow multiple live dash formats to download simultaneously * [youtube] Implement fragment re-fetching for the live dash formats * [youtube] Re-extract dash manifest every 5 hours (manifest expires in 6hrs) * [postprocessor/ffmpeg] Add `FFmpegFixupDuplicateMoovPP` to fixup duplicated moov atoms Known issue: Ctrl+C doesn't work on Windows when downloading multiple formats Closes #1521 Authored by: nao20010128nao, pukkandan
* [docs] Minor documentation improvementspukkandan2021-11-101-0/+1
| | | | Closes #1583, #1599
* [fragment] Fix progress display in fragmented downloadspukkandan2021-11-031-3/+11
| | | | Closes #1517
* [cleanup] miscpukkandan2021-10-231-1/+2
|
* [fragment] Print error message when skipping fragmentpukkandan2021-10-191-3/+4
|
* Revert "[fragments] Pad fragments before decrypting (#1298)"pukkandan2021-10-191-2/+1
| | | | This reverts commit 373475f03553a7fff2d20df878755bfad2fab8e5.
* [fragments] Pad fragments before decrypting (#1298)shirt2021-10-181-1/+2
| | | | Closes #197, #1297, #1007 Authored by: shirt-dev
* Improved progress reporting (See desc) (#1125)pukkandan2021-10-091-3/+1
| | | | | | | | | | | * Separate `--console-title` and `--no-progress` * Add option `--progress` to show progress-bar even in quiet mode * Fix and refactor `minicurses` * Use `minicurses` for all progress reporting * Standardize use of terminal sequences and enable color support for windows 10 * Add option `--progress-template` to customize progress-bar and console-title * Add postprocessor hooks and progress reporting Closes: #906, #901, #1085, #1170
* [HLS] Fix decryption issues (#1117)shirt2021-09-291-1/+2
| | | | | | | * Unpad HLS fragments with PKCS#7 according to datatracker.ietf.org/doc/html/rfc8216 * media_sequence should only be incremented in for media fragments * The native decryption should only be used if ffmpeg is unavailable since it is significantly slower. Closes #1086 Authored by: shirt-dev, pukkandan
* Basic framework for simultaneous download of multiple formats (#1036)The Hatsune Daishi2021-09-221-2/+51
| | | Authored by: nao20010128nao
* [fragment,aria2c] Generalize and refactor some codepukkandan2021-09-221-20/+25
|
* [fragment] Fix range header when using `-N` and media sequence (#1048)pukkandan2021-09-221-1/+1
| | | | Authored by: shirt
* [fragment] Avoid repeated request for AES keypukkandan2021-09-221-2/+8
|