Skip to content

Commit cceb453

Browse files
committed
debug videoUrl from start Radio button in menu
1 parent 5faeddb commit cceb453

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plugins/downloader/front.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ const baseUrl = defaultConfig.url;
4040
global.download = () => {
4141
let metadata;
4242
let videoUrl = getSongMenu()
43-
.querySelector("ytmusic-menu-navigation-item-renderer")
44-
.querySelector("#navigation-endpoint")
45-
.getAttribute("href");
43+
?.querySelector('ytmusic-menu-navigation-item-renderer.iron-selected[tabindex="0"]')
44+
?.querySelector("#navigation-endpoint")
45+
?.getAttribute("href");
4646
if (videoUrl) {
4747
videoUrl = baseUrl + "/" + videoUrl;
4848
metadata = null;

0 commit comments

Comments
 (0)