This repository has been archived on 2026-05-27. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
rustypipe/src
Kayos bda0fea193 deobfuscate: soft-fail sig_fn/nsig_fn extraction
When YouTube rotates player.js to a shape our six sig/nsig regex
patterns don't recognise (eg. c2f7551f, May 2026), the whole player
path used to die at extract_fns even for clients that don't need the
sig fn at all (iOS, Android, Tv all get pre-signed stream URLs).

Now sig_fn / nsig_fn extraction is best-effort. Only the signature
timestamp is required — every `needs_deobf` client needs sts in
the request payload, but the actual deobfuscation functions are only
consumed by map_url when a stream URL carries `&s=` or `&n=`.
On failure we log a warning and store an empty string; Deobfuscator
then skips the JS eval, and any deobfuscate_sig/deobfuscate_nsig
call will fail loudly with "sig fn unavailable" instead of crashing
the player.

Keeps the Tv fallback alive even when sig deobf regex breaks.
2026-05-24 11:53:12 -07:00
..
client client: prefer iOS over Android in default order 2026-05-24 11:50:56 -07:00
model feat: add unavailable field for music tracks 2025-06-18 15:34:05 +02:00
param feat: add DRM and audio channel number filtering to StreamFilter 2025-01-16 00:47:49 +01:00
serializer feat: add functions to fetch a user's history and subscriptions 2025-01-05 05:50:58 +01:00
util remove unwrap trying to fetch visitor data (#60) 2025-06-17 13:29:52 +02:00
cache.rs feat: set cache file permissions to 600 2025-01-16 02:15:20 +01:00
deobfuscate.rs deobfuscate: soft-fail sig_fn/nsig_fn extraction 2026-05-24 11:53:12 -07:00
error.rs feat: player: handle VPN ban and captcha required error messages 2025-04-23 21:21:23 +02:00
lib.rs fix: use localzone crate to get local tz 2025-02-07 04:13:44 +01:00
report.rs feat: add RustyPipe::version_botguard fn, detect rustypipe-botguard in current dir, add botguard version to report 2025-02-09 01:52:09 +01:00
validate.rs fix: accept user-specific playlist ids (LL, WL) 2025-01-05 05:51:00 +01:00