pukkandan
f0c9fb9682
[utils] `Popen`: Refactor to use contextmanager
...
Fixes https://github.com/yt-dlp/yt-dlp/issues/3531#issuecomment-1156223597
2 years ago
pukkandan
64fa820ccf
[cleanup] Misc fixes (see desc)
...
* [tvver] Fix bug in 6837633a4a
- Closes #4054
* [rumble] Fix tests - Closes #3976
* [make] Remove `cat` abuse - Closes #3989
* [make] Revert #3684 - Closes #3814
* [utils] Improve `get_elements_by_class` - Closes #3993
* [utils] Inherit `Namespace` from `types.SimpleNamespace`
* [utils] Use `re.fullmatch` for matching filters
* [jsinterp] Handle quotes in `_separate`
* [make_readme] Allow overshooting last line
Authored by: pukkandan, kwconder, MrRawes, Lesmiscore
2 years ago
MMM
36195c4461
[dash] Show fragment count with `--live-from-start` ( #3493 )
...
Authored by: flashdagger
3 years ago
pukkandan
5ec1b6b716
Add option `--download-sections` to download video partially
...
Closes #52 , Closes #3932
3 years ago
pukkandan
1890fc6389
[cleanup] Misc fixes
...
Cherry-picks from: #3498 , #3947
Related: #3949 , https://github.com/yt-dlp/yt-dlp/issues/1839#issuecomment-1140313836
Authored by: pukkandan, flashdagger, gamer191
3 years ago
pukkandan
8a7f6d7a15
Do not print progress to `stderr` with `-q`
...
It is arguable how this "should" behave, but since progress is always
written to stdout in older yt-dl/p, we should keep it as-is
Bug in cf4f42cb97
Closes #3844
3 years ago
pukkandan
8a82af3511
[cleanup] Misc fixes and cleanup
...
Closes #3780 , Closes #3853 , Closes #3850
3 years ago
pukkandan
11233f2afd
[downloader, cleanup] Refactor `report_progress`
...
Closes #3790
3 years ago
pukkandan
c487cf0010
[cleanup] Misc
3 years ago
pukkandan
1a8cc83735
Bugfix for 3a408f9d19
3 years ago
pukkandan
2762dbb17e
[compat] Add `functools.cached_property`
3 years ago
pukkandan
666c36d58d
Bugfix for 23326151c4
3 years ago
pukkandan
23326151c4
Add option --retry-sleep ( #3059 )
...
Closes #2852
3 years ago
pukkandan
7896214c42
Bugfix for 591bb9d355
...
Closes #3769
3 years ago
pukkandan
591bb9d355
Fix color in `-q -F`
...
and convert `ydl._out_files`/`ydl._allow_colors` to `Namespace`
Closes #3761
3 years ago
coletdjnz
5faf6528fb
[http] Fix bug in retrying on read timeout in py < 3.10
...
socket.timeout is not an alias of TimeoutError in py < 3.10
Fixes bug in a2e77303e3
Authored-by: coletdjnz
3 years ago
pukkandan
3a408f9d19
Show name of downloader in verbose log
...
Closes #3703
3 years ago
pukkandan
0f06bcd759
[cleanup] Minor fixes (See desc)
...
* [youtube] Fix `--youtube-skip-dash-manifest`
* [build] Use `$()` in `Makefile`. Closes #3684
* Fix bug in 385ffb467b
* Fix bug in 43d7f5a5d0
* [cleanup] Remove unnecessary `utf-8` from `str.encode`/`bytes.decode`
* [utils] LazyList: Expose unnecessarily "protected" attributes
and other minor cleanup
3 years ago
felix
e4fa34a13e
[hls] Fix unapplied byte_range for EXT-X-MAP fragment
...
Cherry-picked from #3302
Authored by: fstirlitz
3 years ago
pukkandan
3fe75fdc80
[cleanup] Misc fixes (see desc)
...
* Do not warn when fixup is skipped for existing file
* [fragment] Fix `--skip-unavailable-fragments` for HTTP Errors
* [utils] write_string: Fix bug in 59f943cd50
* [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
3 years ago
pukkandan
1d485a1a79
[cleanup] Misc fixes
...
Closes #3565 , https://github.com/yt-dlp/yt-dlp/issues/3514#issuecomment-1105944364
3 years ago
pukkandan
0a5a191a2a
Improve `--clean-infojson`
...
It should not removes fields that may be needed for `--load-infojson`.
Eg: `_ffmpeg_args`, `_has_drm`
3 years ago
Elyse
00828e2c93
[downloader/ffmpeg] Specify headers for each URL ( #3553 )
...
Closes #2696
Authored by: elyse0
3 years ago
Lesmiscore
69b59b4b4b
[downloader/fc2] Stop heatbeating once FFmpeg finishes
...
Authored by: Lesmiscore
3 years ago
pukkandan
9b8ee23b99
[dependencies] Create module with all dependency imports
3 years ago
pukkandan
43cc91ad75
bugfix for 19a0394044
, 3d3bb1688b
3 years ago
felix
77f9033095
[compat] Split into sub-modules ( #2173 )
...
Authored by: fstirlitz, pukkandan
3 years ago
pukkandan
19a0394044
[cleanup] Misc cleanup and refactor ( #2173 )
3 years ago
Lesmiscore (Naoya Ozaki)
c854208ccf
[downloader/fragment] Make single thread download work for --live-from-start ( #3446 )
...
Authored by: Lesmiscore
3 years ago
pukkandan
e06bd8800f
Fix `--skip-unavailable-fragments`
...
Bug in d71fd41249
Closes #3437
3 years ago
pukkandan
3b9d9f4374
Do not change fragment chunk-size when `--test`
...
Closes #3434
3 years ago
pukkandan
f82711587c
[cleanup] Sort imports
...
Using https://github.com/PyCQA/isort
isort -m VERTICAL_HANGING_INDENT --py 36 -l 80 --rr -n --tc .
3 years ago
pukkandan
86e5f3ed2e
[cleanup] Upgrade syntax
...
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
3 years ago
pukkandan
f9934b9614
[cleanup] Mark some compat variables for removal ( #2173 )
...
Authored by fstirlitz, pukkandan
3 years ago
pukkandan
0edb3e336c
Do not prevent download if locking is unsupported
...
Closes #3022
Failure to lock download-archive is still fatal.
This is consistent with youtube-dl's behavior
3 years ago
pukkandan
ce0593ef61
[http] Fix #3215
3 years ago
pukkandan
a44ca5a470
[cleanup] Misc fixes
...
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 , a825ffbffa (commitcomment-68538986)
, https://github.com/yt-dlp/yt-dlp/issues/2360 , 5fa3c9a88f (r70393519)
, 5fa3c9a88f (r70393254)
3 years ago
pukkandan
c4f60dd7cd
[utils] Add `try_call`
3 years ago
pukkandan
28787f16c6
[downloader] Fix invocation of `HttpieFD`
...
Closes #3154
3 years ago
coletdev
af14914baa
Remove `Accept-Encoding` header from `std_headers` ( #3153 )
...
This should be set by each downloader to what it supports.
Fixes https://github.com/yt-dlp/yt-dlp/issues/3142
Authored-by: coletdjnz
3 years ago
coletdev
8a23db9519
[wget] Fix proxy ( #3152 )
...
Upstream PR: https://github.com/ytdl-org/youtube-dl/pull/29343
Authored-by: kikuyan, coletdjnz
3 years ago
Lesmiscore (Naoya Ozaki)
be4685ab7b
[http] Reject broken range before request ( #3079 )
...
* And fix filesize estimate for byterange downloads
Closes #2001
Authored by: Lesmiscore, Jules-A, pukkandan
3 years ago
coletdev
a2e77303e3
[downloader/http] Retry on more errors ( #3065 )
...
Closes #3056 , #2071
Related: #3034 , #2969
Authored-by: coletdjnz
3 years ago
Lesmiscore (Naoya Ozaki)
d71fd41249
[fragment] Read downloaded fragments only when needed ( #3069 )
...
Authored by: Lesmiscore
3 years ago
coletdev
b3edc8068e
[downloader/mhtml] Fix fragments with absolute urls ( #3044 )
...
Authored-by: coletdjnz
3 years ago
pukkandan
592b748582
[cleanup] Minor cleanup
...
Closes #3006
3 years ago
pukkandan
cf4f42cb97
Protect stdout from unexpected progress and console-title
...
Closes #3023
3 years ago
pukkandan
08d30158ec
[cleanup, docs] Misc cleanup
...
Closes #2828 , closes #2734 , closes #2802 , closes #2937
3 years ago
Emanuel Hoogeveen
45806d44a7
[downloader] Obey `--file-access-retries` when deleting/renaming ( #2224 )
...
Authored by: ehoogeveen-medweb
3 years ago
Lesmiscore (Naoya Ozaki)
93c8410d33
[downloader/fragment] Fix bugs around resuming with Range ( #2901 )
...
Authored by: Lesmiscore
3 years ago