feat: channel failures, updater, and a tidier Settings

Failing channels are visible instead of buried in a toast count. Each
refresh records its outcome per channel, the sidebar marks the failures
and counts them in its heading, and selecting one explains why above its
videos. Yours turn out to be three channels returning HTTP 404 — removed
or renamed on YouTube.

Video lengths now fill for what is on screen. Filling the newest across
all subscriptions meant a channel's videos stayed blank forever, since
the global newest always won the queue.

yt-dlp can be updated from Settings, which also says whether it is
current. It breaks whenever YouTube changes something, so it lands in
app data and takes precedence over the bundled copy; ffmpeg is stable
and ships with each release, so it is shown but not updated.

Also: 'Downloaded only' is now 'Local'; Hide Shorts moved to Settings;
the seven-step Takeout guide moved behind a button, since it dominated
the panel; the player names the height it is actually streaming, which
changes as an adaptive stream switches rendition; the player's delete is
an icon; and the window minimum drops to 1080 now that the control row
has one fewer button, while still never wrapping.
This commit is contained in:
vincent
2026-08-29 15:17:15 +02:00
parent 923fd3273f
commit 48acaa359f
13 changed files with 416 additions and 74 deletions
+9 -1
View File
@@ -13,6 +13,7 @@ import type {
RefreshProgress,
RefreshSummary,
Stream,
UpdateStatus,
} from "./types";
export const checkPrereqs = () => invoke<Prereqs>("check_prereqs");
@@ -30,7 +31,9 @@ export const downloadVideo = (videoId: string, quality: Quality, subLangs: strin
export const deleteAllDownloads = () => invoke<number>("delete_all_downloads");
/** Fills in missing video lengths, a batch at a time. Returns how many. */
export const fetchDurations = () => invoke<number>("fetch_durations");
/** Fills lengths for the videos on screen first. */
export const fetchDurations = (visible: string[]) =>
invoke<number>("fetch_durations", { visible });
/** Browsers installed here that yt-dlp can read cookies from: [id, label]. */
export const listBrowsers = () => invoke<Array<[string, string]>>("list_browsers");
@@ -42,6 +45,11 @@ export const setCookieSource = (browser: string) =>
/** Resolves a known video to check whether YouTube is currently reachable. */
export const testYoutube = () => invoke<string>("test_youtube");
export const checkYtDlpUpdate = () => invoke<UpdateStatus>("check_yt_dlp_update");
/** Downloads the newest yt-dlp and switches to it. Returns its version. */
export const updateYtDlp = () => invoke<string>("update_yt_dlp");
/** WebVTT sidecars beside a downloaded video, as [language, path] pairs. */
export const listSubtitles = (videoId: string) =>
invoke<Array<[string, string]>>("list_subtitles", { videoId });