YouTube 2.0.0: native client without ads
All checks were successful
release / release (push) Successful in 10m13s

Replaces the web app (youtube.com/tv in Chromium) with a native Rust +
Slint client on sf-ui, built on Netflex TV's page engine.

- InnerTube: web client for public pages, the TV client with the
  account's OAuth token for personal ones, visionOS (direct URLs) for
  streams, the TV client with yt-dlp's ejs solver (QuickJS) as fallback.
- One version, no ads: ad breaks are never requested, ad renderers are
  skipped in feeds. SponsorBlock skips sponsored parts.
- Sign-in with a QR code / youtube.com/activate (OAuth device flow).
- Signed out: subscriptions and history on the TV; a home filled with
  this week's popular Hungarian videos when YouTube's is empty.
- Playback: one-quality DASH manifest for GStreamer, H.264 up to 1080p
  or AV1 up to 4K, captions, quality switching, up next, resume.
- Release builds for x86-64 and the Raspberry Pi (aarch64).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Tamas Csikel
2026-11-02 16:27:41 +01:00
parent 645fd1c6fe
commit 9875d435e1
40 changed files with 15776 additions and 37 deletions

99
ui/link.slint Normal file
View File

@@ -0,0 +1,99 @@
// Sign-in with a phone: a QR code and the code to type at
// youtube.com/activate, on a modal glass pane. Rust polls YouTube until the
// user confirms (src/app.rs, sign_in). Back cancels; OK asks for a new code
// after an error.
import { Tv, GlassRect, GlassPane, Spinner, Title, Label, Caption, Icon } from "@sf-ui/sf-ui.slint";
export component LinkScreen inherits Rectangle {
in property <float> alpha: 1;
in property <image> qr;
in property <string> code;
in property <string> url;
in property <string> status;
in property <bool> busy;
pane := GlassPane {
x: (root.width - self.width) / 2;
y: (root.height - self.height) / 2;
width: 1500 * Tv.u;
height: 700 * Tv.u;
radius: 56 * Tv.u;
frost: 3.8;
tint: Tv.smoke.with-alpha(0.5);
glow: #ff0033;
alpha: root.alpha;
// The QR code on a white card (Slint over glass is fine: it sits on
// the pane, nothing glass is under it).
Rectangle {
x: 80 * Tv.u;
y: (parent.height - self.height) / 2;
width: 460 * Tv.u;
height: 460 * Tv.u;
border-radius: 28 * Tv.u;
background: #ffffff;
opacity: root.alpha;
if root.qr.width > 0: Image {
width: parent.width - 40 * Tv.u;
height: parent.height - 40 * Tv.u;
source: root.qr;
image-rendering: pixelated;
}
if root.qr.width == 0: Spinner { size: 64 * Tv.u; }
}
VerticalLayout {
x: 620 * Tv.u;
y: 96 * Tv.u;
width: parent.width - 700 * Tv.u;
height: parent.height - 160 * Tv.u;
spacing: 22 * Tv.u;
alignment: start;
opacity: root.alpha;
Title { text: "Bejelentkezés a YouTube-ba"; }
Label {
text: "1. Olvasd be a QR-kódot a telefonoddal, vagy nyisd meg ezt az oldalt:";
wrap: word-wrap;
color: Tv.text-secondary;
}
Text {
text: root.url == "" ? "youtube.com/activate" : root.url;
font-size: 34 * Tv.u;
font-weight: 700;
color: Tv.text;
}
Label {
text: "2. Írd be ezt a kódot, és válaszd ki a fiókodat:";
wrap: word-wrap;
color: Tv.text-secondary;
}
Text {
text: root.code == "" ? "…" : root.code;
font-size: 72 * Tv.u;
font-weight: 800;
letter-spacing: 6 * Tv.u;
color: #ffffff;
}
HorizontalLayout {
spacing: 16 * Tv.u;
alignment: start;
if root.busy: Spinner { size: 36 * Tv.u; }
if !root.busy: Icon { name: "warning"; size: 34 * Tv.u; ink: Tv.warn-ink; }
Caption {
vertical-alignment: center;
text: root.status;
wrap: word-wrap;
}
}
}
Caption {
x: 620 * Tv.u;
y: parent.height - 72 * Tv.u;
text: "Vissza: mégse";
opacity: root.alpha;
}
}
out property <[GlassRect]> glass: [pane.glass];
}