From bf9e3b5f48dfec80de80a4120f2c349c019fed9a Mon Sep 17 00:00:00 2001 From: JellyBrick Date: Fri, 13 Oct 2023 22:05:09 +0900 Subject: [PATCH] hotfix(downloader): fix invalid query selector (fix #1308) --- plugins/downloader/front.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/downloader/front.ts b/plugins/downloader/front.ts index 2a72eec6..1519366b 100644 --- a/plugins/downloader/front.ts +++ b/plugins/downloader/front.ts @@ -47,7 +47,7 @@ const menuObserver = new MutationObserver(() => { (global as any).download = () => { let videoUrl = getSongMenu() // Selector of first button which is always "Start Radio" - ?.querySelector('ytmusic-menu-navigation-item-renderer[tabindex="0"] #navigation-endpoint') + ?.querySelector('ytmusic-menu-navigation-item-renderer[tabindex="-1"] #navigation-endpoint') ?.getAttribute('href'); if (videoUrl) { if (videoUrl.startsWith('watch?')) {