From cceb45319ae82ff7c23c7accce64132aeb51b703 Mon Sep 17 00:00:00 2001 From: Araxeus Date: Sat, 8 May 2021 04:03:34 +0300 Subject: [PATCH] debug videoUrl from `start Radio` button in menu --- plugins/downloader/front.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/downloader/front.js b/plugins/downloader/front.js index 200a7e15..23cd1448 100644 --- a/plugins/downloader/front.js +++ b/plugins/downloader/front.js @@ -40,9 +40,9 @@ const baseUrl = defaultConfig.url; global.download = () => { let metadata; let videoUrl = getSongMenu() - .querySelector("ytmusic-menu-navigation-item-renderer") - .querySelector("#navigation-endpoint") - .getAttribute("href"); + ?.querySelector('ytmusic-menu-navigation-item-renderer.iron-selected[tabindex="0"]') + ?.querySelector("#navigation-endpoint") + ?.getAttribute("href"); if (videoUrl) { videoUrl = baseUrl + "/" + videoUrl; metadata = null;