From 2d71fdce6a9258c2496b3aa205959ed08c470712 Mon Sep 17 00:00:00 2001 From: Honey Date: Sat, 2 May 2026 19:59:04 +0200 Subject: [PATCH] fix: skip artist channel results, live notification list update - Add --match-filter 'webpage_url !*= /browse/' to baseArgs so yt-dlp skips YTM artist channel pages returned as search results (previously caused recursive channel-upload fetches that wasted time) - Call _renderNotifList() in _addNotif so playlist-created notifications appear immediately without needing a page reload Co-Authored-By: Claude Sonnet 4.6 --- backend/novasonic-server.js | 3 +++ src/ui.js | 1 + 2 files changed, 4 insertions(+) diff --git a/backend/novasonic-server.js b/backend/novasonic-server.js index 4435b34..ca7f8c7 100644 --- a/backend/novasonic-server.js +++ b/backend/novasonic-server.js @@ -255,6 +255,9 @@ async function downloadTrack({ jobId, artist, albumArtist, title, album, year, t '--no-playlist', '--no-warnings', '--newline', + // Skip artist channel pages that YTM sometimes returns as search result 1; + // without this yt-dlp recursively fetches the entire channel uploads playlist. + '--match-filter', 'webpage_url !*= /browse/', ]; // Filtered searches: top 5 (fast) and top 10 (wider net when top 5 misses). // Unfiltered fallback only needs item 1 (no filter to skip past). diff --git a/src/ui.js b/src/ui.js index 931e3b8..9788af4 100644 --- a/src/ui.js +++ b/src/ui.js @@ -432,6 +432,7 @@ function _addNotif(notif) { list.unshift(notif); _saveNotifs(list); _renderNotifBell(); + _renderNotifList(); } export function deleteNotif(id) {