Commit Graph

302 Commits (9f9c85dda4953923d710ca9d24b2e433ec26e882)

Author SHA1 Message Date
pukkandan da4db748fa
[utils] Add `deprecation_warning`
See https://github.com/yt-dlp/yt-dlp/pull/2173#issuecomment-1097021515
pukkandan d81ba7d491
[jsinterp, extractor/youtube] Minor fixes
pukkandan c4b2df872d
[jsinterp] Fix `_separate`
Ref: https://github.com/yt-dlp/yt-dlp/issues/4635#issuecomment-1231126941
Samantaz Fox 224b5a35f7
[extractor/youtube] Update iOS Innertube clients ()
Authored by: SamantazFox
coletdjnz 50ac0e5416
[extractor/youtube] Use device-specific user agent ()
Thwart latest fingerprinting attempt (see https://github.com/iv-org/invidious/issues/3230#issuecomment-1226887639)

Authored by: coletdjnz
pukkandan 5e01315aa1
[cache, extractor/youtube] Invalidate old cache
pukkandan 992dc6b486
[jsinterp] Implement timeout
Workaround for 
pukkandan b25cac650f
[extractor/youtube] Fix bug in format sorting
pukkandan 90a1df305b
[test] Fix test_youtube_signature
pukkandan a831c2ea90
[cleanup] Misc
pukkandan 25836db6be
[extractor/youtube] Add fallback to phantomjs
Related 
pukkandan 580ce00782
[youtube] Improve signature caching
and refactor related functions
pukkandan f6ca640b12
[jsinterp] Fix for youtube player 1f7d5369
Closes  again
pukkandan 3ce2933693
[youtube] Fix error reporting of "Incomplete data"
Related: 
pukkandan 5c6d2ef9d1
[youtube] Improve format sorting for IOS formats
When no itag/resolution is available for reference, use the closest resolution
Lesmiscore 62b58c0936
[docs] Consistent use of `e.g.` ()
Authored by: Lesmiscore
pukkandan 8f53dc44a0
[jsinterp] Handle new youtube signature functions
Closes 
pukkandan 7e798d725e
[extractor] Fix format sorting of `channels`
coletdjnz c7dcf0b31e
[extractor/youtube] Add `androidSdkVersion` parameter to Android Innertube clients
Required to prevent YouTube returning a bad player response in some cases.

See: https://github.com/yt-dlp/yt-dlp/pull/4593, https://github.com/TeamNewPipe/NewPipe/issues/8713, https://github.com/iv-org/invidious/issues/3230, https://github.com/Tyrrrz/YoutubeExplode/issues/647

Authored by: coletdjnz
pukkandan a416623436
[extractor/youtube] Extract more format info
coletdjnz a3e9642116
[extractor/youtube] Prevent redirect to unwanted videos ()
Example: https://www.youtube.com/watch?v=aQvGIIdgFDM

Authored by: coletdjnz
coletdjnz a0c830f488
[extractor/youtube] Bump Innertube client versions
YouTube may be requiring new versions soon. See https://github.com/iv-org/invidious/issues/3230, https://github.com/TeamNewPipe/NewPipe/issues/8713

Authored by: coletdjnz
pukkandan be5c1ae862
Standardize retry mechanism ()
* [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
pukkandan bfd973ece3 [extractors] Use new framework for existing embeds ()
`Brightcove` is difficult to migrate because it's subclasses may depend
on the signature of the current functions. So it is left as-is for now

Note: Tests have not been migrated
pukkandan f2e8dbcc00 [extractor, test] Basic framework for embed tests ()
and split download tests so they can be more easily run in CI

Authored by: coletdjnz
lazypete365 e325a21a1f
[extractor/youtube] Add `live_status=post_live` ()
Related: https://github.com/yt-dlp/yt-dlp/issues/1564
Authored by: lazypete365
pukkandan 31b532a1f2
[cleanup] Misc
pukkandan c646d76f67
[webvtt, extractor/youtube] Extract auto-subs from livestream VODs
Closes 

Authored by: pukkandan, fstirlitz
pukkandan 07b47084ba
[extractor/youtube] Parse translated subtitles only when requested
Closes 
pukkandan 693f060040
[youtube,twitch] Allow waiting for channels to become live
Closes 
ftk 45e8a04e48
[extractor/youtube] More metadata for storyboards ()
Authored by: ftk
pukkandan a3fb1ca5ab
[extractor/youtube] Fix duration check for post-live manifestless mode
Andrew 12a1b2254d
[extractor/youtube, cleanup] Fix tests ()
Authored by: sheerluck
pukkandan a3976e0760
Improve chapter sanitization
pukkandan ae61d108dd
[cleanup] Misc cleanup
crazymoose77756 962ffcf89c
[cleanup] Fix some typos ()
Authored by: crazymoose77756
pukkandan 14f25df2b6
[compat] Remove deprecated functions from core code
pukkandan ac66811112
[compat] Remove more functions
Removing any more will require changes to a large number of extractors
Brett824 06cc8f103b
[extractor/youtube] Mark videos as fully watched ()
* Also fixes videos appearing as shorts in watch history

Closes 
Authored by: Brett824
pukkandan 9809740ba5
[extractor, cleanup] Reduce direct use of `_downloader`
pukkandan 471d0367c7
[youtube:clips] Support downloading clips
Closes 
pukkandan a70635b8a1
[cleanup, utils] Don't use kwargs for `format_field`
pukkandan 0df111a371
[youtube] Extract `comment_count` from webpage
Closes 
coletdjnz 4ce05f5759
[extractor/youtube] Fix live chat for videos with content warning
Fixes 
Authored by: coletdjnz
pukkandan 56ba69e4c9
[cleanup] Misc fixes
Closes 
coletdev 2ae778b8fc
[extractor/youtube] Add `innertube_host` and `innertube_key` extractor args ()
Allows user to override Innertube API host or key for all requests
Authored by: coletdjnz
MMM 36195c4461
[dash] Show fragment count with `--live-from-start` ()
Authored by: flashdagger
coletdjnz 65141660ab
[extractor/youtube] Fix bug in b7c47b7438
Closes 

Authored by: coletdjnz
pukkandan b7c47b7438
[extractor] Add `_search_json`
All fetching of JSON objects should eventually be done with this function
but only `youtube` is being refactored for now
pukkandan 1890fc6389
[cleanup] Misc fixes
Cherry-picks from: , 
Related: , https://github.com/yt-dlp/yt-dlp/issues/1839#issuecomment-1140313836
Authored by: pukkandan, flashdagger, gamer191