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;