From d7e42471a473f0a8cefd955f0a7db5d8fd7116af Mon Sep 17 00:00:00 2001 From: Araxeus Date: Sat, 8 May 2021 23:01:57 +0300 Subject: [PATCH] lint --- plugins/downloader/front.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/downloader/front.js b/plugins/downloader/front.js index f9a0e9b9..034834ae 100644 --- a/plugins/downloader/front.js +++ b/plugins/downloader/front.js @@ -42,9 +42,10 @@ global.download = () => { triggerAction(CHANNEL, ACTIONS.PROGRESS, 2); // starts with indefinite progress bar let metadata; let videoUrl = getSongMenu() - ?.querySelector('ytmusic-menu-navigation-item-renderer.iron-selected[tabindex="0"]') - ?.querySelector("#navigation-endpoint") + // selector of first button which is always "Start Radio" + ?.querySelector('ytmusic-menu-navigation-item-renderer.iron-selected[tabindex="0"] #navigation-endpoint') ?.getAttribute("href"); + console.log(videoUrl) if (videoUrl) { videoUrl = baseUrl + "/" + videoUrl; metadata = null;