fix(live-channels): tolerate YouTube API failures when adding custom channels (#425)

The /api/youtube/live validation endpoint may return 429 or non-JSON
responses (Vercel WAF, YouTube rate limiting). Previously this caused
res.json() to parse HTML → either throw (caught, channel added) or
return channelExists:false (blocked add with red border).

Now only blocks when the API explicitly returns 200 OK with
channelExists:false — any non-OK status or error allows the add.

Also bumps version to 2.5.13.
This commit is contained in:
Elie Habib
2026-02-26 20:33:11 +04:00
committed by GitHub
parent 30bd84abb2
commit bbe814c985
4 changed files with 11 additions and 11 deletions

View File

@@ -1,7 +1,7 @@
{
"name": "world-monitor",
"private": true,
"version": "2.5.12",
"version": "2.5.13",
"license": "AGPL-3.0-only",
"type": "module",
"scripts": {

16
src-tauri/Cargo.lock generated
View File

@@ -764,9 +764,9 @@ checksum = "bd0c93bb4b0c6d9b77f4435b0ae98c24d17f1c45b2ff844c6151a07256ca923b"
[[package]]
name = "dispatch2"
version = "0.3.0"
version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "89a09f22a6c6069a18470eb92d2298acf25463f14256d24778e1230d789a2aec"
checksum = "1e0e367e4e7da84520dedcac1901e4da967309406d1e51017ae1abfb97adbd38"
dependencies = [
"bitflags 2.11.0",
"objc2",
@@ -2334,9 +2334,9 @@ dependencies = [
[[package]]
name = "objc2"
version = "0.6.3"
version = "0.6.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b7c2599ce0ec54857b29ce62166b0ed9b4f6f1a70ccc9a71165b6154caca8c05"
checksum = "3a12a8ed07aefc768292f076dc3ac8c48f3781c8f2d5851dd3d98950e8c5a89f"
dependencies = [
"objc2-encode",
"objc2-exception-helper",
@@ -2861,16 +2861,16 @@ dependencies = [
[[package]]
name = "polling"
version = "3.10.0"
version = "3.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b5bd19146350fe804f7cb2669c851c03d69da628803dab0d98018142aaa5d829"
checksum = "5d0e4f59085d47d8241c88ead0f274e8a0cb551f3625263c05eb8dd897c34218"
dependencies = [
"cfg-if",
"concurrent-queue",
"hermit-abi",
"pin-project-lite",
"rustix",
"windows-sys 0.60.2",
"windows-sys 0.61.2",
]
[[package]]
@@ -5423,7 +5423,7 @@ dependencies = [
[[package]]
name = "world-monitor"
version = "2.5.12"
version = "2.5.13"
dependencies = [
"getrandom 0.2.17",
"keyring",

View File

@@ -1,6 +1,6 @@
[package]
name = "world-monitor"
version = "2.5.12"
version = "2.5.13"
description = "World Monitor desktop application"
authors = ["World Monitor"]
edition = "2021"

View File

@@ -2,7 +2,7 @@
"$schema": "https://schema.tauri.app/config/2",
"productName": "World Monitor",
"mainBinaryName": "world-monitor",
"version": "2.5.12",
"version": "2.5.13",
"identifier": "app.worldmonitor.desktop",
"build": {
"beforeDevCommand": "npm run build:sidecar-sebuf && npm run dev",