Commit graph

19037 commits

Author SHA1 Message Date
nicolaasjan d9c68cc459
Add WITH_COOKIES parameter to INNERTUBE_CONTEXT; fix indentation
Added 'WITH_COOKIES' parameter to the context; fix indentation
2026-10-10 07:01:57 +02:00
nicolaasjan 2ae8015f19
Add visionOS client information to YouTube extractor 2026-08-23 07:52:25 +02:00
nicolaasjan 0b734d3350
Update Chrome major version range in user agent 2026-08-05 15:36:12 +02:00
nicolaasjan 56756f621f
Update Chrome major version range in user agent 2026-05-28 05:46:55 +02:00
nicolaasjan 405324d770
Update Chrome major version range in user agent 2026-04-08 09:24:46 +02:00
nicolaasjan fc5ddd8e7a
Add files via upload 2026-04-08 09:20:29 +02:00
nicolaasjan fe4870c53e
Update android_vr player client version and user agent 2026-03-11 06:31:12 +01:00
nicolaasjan c3adaaa90f
Add android_vr client
Fix HTTP 403 on DASH fragments by adding android_vr client (#33246)
2026-02-13 08:42:03 +01:00
nicolaasjan e5ced08432
Update Chrome major version range in user agent 2026-02-13 08:36:10 +01:00
nicolaasjan aa4db1449b
Update Chrome major version range in user agent 2026-01-26 07:24:32 +01:00
nicolaasjan 98443948ea
Even better jpeg quality 2025-12-18 06:58:34 +01:00
nicolaasjan 7a55940b55
Update Chrome major version range in user agent 2025-12-18 06:53:13 +01:00
nicolaasjan 6d50b5dc50
Merge branch 'ytdl-org:master' into embedthumbnail 2025-11-26 09:29:40 +01:00
dirkf 956b8c5855 [YouTube] Bug-fix for c1f5c3274a 2025-11-26 03:02:36 +00:00
dirkf d5f561166b [core] Re-work format_note display in format list with abbreviated codec name 2025-11-26 03:02:36 +00:00
nicolaasjan b21318ee73
Merge branch 'ytdl-org:master' into embedthumbnail 2025-11-21 06:41:23 +01:00
dirkf d0283f5385 [YouTube] Revert forcing player JS by default
* still leaving the parameters in place

thx bashonly for confirming this suggestion
2025-11-21 01:52:11 +00:00
dirkf 6315f4b1df [utils] Support additional codecs and dynamic_range 2025-11-21 01:52:11 +00:00
dirkf aeb1254fcf [YouTube] Fix playlist thumbnail extraction
Thx seproDev, yt-dlp/yt-dlp#11615
2025-11-21 01:52:11 +00:00
dirkf 25890f2ad1 [YouTube] Improve detection of geo-restriction
Thx yt-dlp
2025-11-21 01:52:11 +00:00
dirkf d65882a022 [YouTube] Improve mark_watched()
Thx: Brett824, yt-dlp/yt-dlp#4146
2025-11-21 01:52:11 +00:00
dirkf 39378f7b5c [YouTube] Fix incorrect chapter extraction
* align `_get_text()` with yt-dlp (thx, passim) at last
2025-11-21 01:52:11 +00:00
dirkf 6f5d4c3289 [YouTube] Improve targeting of pre-roll wait
Experimental for now.
Thx: yt-dlp/yt-dlp#14646
2025-11-21 01:52:11 +00:00
dirkf 5d445f8c5f [YouTube] Re-work client selection
* use `android_sdkless` by default
* use `web_safari` (HLS only) if logged in
* skip any non-HLS format with n-challenge
2025-11-21 01:52:11 +00:00
dirkf a1e2c7d90b [YouTube] Add further InnerTube clients
FWIW: android-sdkless, tv_downgraded, web_creator
Thx yt-dlp passim
2025-11-21 01:52:11 +00:00
dirkf c55ace3c50 [YouTube] Use insertion-order-preserving dict for InnerTube client data 2025-11-21 01:52:11 +00:00
dirkf 43e3121020 [utils] Align parse_duration() behaviour with yt-dlp
* handle comma-separated long-form durations
* support : as millisecond separator.
2025-11-21 01:52:11 +00:00
dirkf 7a488f7fae [utils] Stabilise traversal results using compat_dict
In `traverse_obj()`, use `compat_dict` to construct dicts,
ensuring insertion order sort, but`compat_builtin_dict`
to test for dict-iness...
2025-11-21 01:52:11 +00:00
dirkf 5585d76da6 [compat] Add compat_dict
A dict that preserves insertion order and otherwise resembles the
dict builtin (if it isn't it) rather than `collections.OrderedDict`.

Also:
* compat_builtins_dict: the built-in definition in case `compat_dict`
  was imported as `dict`
* compat_dict_items: use instead of `dict.items` to get items from
  a `compat_dict` in insertion order, if you didn't define `dict` as
  `compat_dict`.
2025-11-21 01:52:11 +00:00
dirkf 931e15621c [compat] Add compat_abc_ABC
Base class for abstract classes
2025-11-21 01:52:11 +00:00
dirkf 27867cc814 [compat] Add compat_thread 2025-11-21 01:52:11 +00:00
dirkf 70b40dd1ef [utils] Add subs_list_to_dict() traversal helper
Thx: yt-dlp/yt-dlp#10653, etc
2025-11-21 01:52:11 +00:00
dirkf a9b4649d92 [utils] Apply partial_application decorator to existing functions
Thx: yt-dlp/yt-dlp#10653 (etc)
2025-11-21 01:52:11 +00:00
dirkf 23a848c314 [utils] Add partial_application decorator function
Thx: yt-dlp/yt-dlp#10653
2025-11-21 01:52:11 +00:00
dirkf a96a778750 [core] Fix housekeeping for available_at 2025-11-21 01:52:11 +00:00
dirkf 68fe8c1781 [utils] Support traversal helper functions require, value, unpack
Thx: yt-dlp/yt-dlp#10653
2025-11-21 01:52:11 +00:00
dirkf 96419fa706 [utils] Support filter traversal key
Thx yt-dlp/yt-dlp#10653
2025-11-21 01:52:11 +00:00
dirkf cca41c9d2c [test] Move dict_get() traversal test to its own class
Matches yt-dlp/yt-dlp#9426
2025-11-21 01:52:11 +00:00
dirkf bc39e5e678 [test] Fix test_traversal_morsel for Py 3.14+
Thx: yt-dlp/yt-dlp#13471
2025-11-21 01:52:11 +00:00
dirkf 014ae63a11 [test] Support additional args and kwargs in report_warning() mocks 2025-11-21 01:52:11 +00:00
dirkf 1e109aaee1 [workflows/ci] Avoid installing wheel and setuptools with pip
Works around dependent wheel installation failure with Py 3.4 from 2025-10
2025-10-18 11:02:28 +01:00
dirkf efb4011211 [YouTube] Introduce _extract_and_report_alerts() per yt-dlp
Fixes #33196.

Also removing previous `_extract_alerts()` method.
2025-10-18 11:02:28 +01:00
dirkf c1f5c3274a [YouTube] Improve some traversals
Pending full alignment with yt-dlp ...
2025-10-18 11:02:28 +01:00
dirkf e21ff28f6f [YouTube] Misc clean-ups from linter, etc 2025-10-18 11:02:28 +01:00
nicolaasjan 4c0c957113
Update Chrome major version range in user agent 2025-10-17 10:03:44 +02:00
nicolaasjan 9071dd65e2
Merge branch 'ytdl-org:master' into embedthumbnail 2025-09-29 15:34:45 +02:00
dirkf 82552faba6 [workflows/ci] Update to windows-2022 runner
FFS
2025-09-29 02:15:05 +01:00
dirkf 617d4e6466 [core] Support explicit --no-list-formats option 2025-09-29 02:15:05 +01:00
dirkf 9223fcc48a [YouTube] Support LOCKUP_CONTENT_TYPE_VIDEO in subscriptions feed extraction
From yt-dlp/yt-dlp#13665), thx bashonly
2025-09-29 02:15:05 +01:00
dirkf 4222c6d78b [YouTube] Extract fallback title and description from initial data
Based on yt-dlp/yt-dlp#14078, thx bashonly
2025-09-29 02:15:05 +01:00