mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-16 20:52:06 +00:00
debug videoUrl from start Radio button in menu
This commit is contained in:
@ -40,9 +40,9 @@ const baseUrl = defaultConfig.url;
|
|||||||
global.download = () => {
|
global.download = () => {
|
||||||
let metadata;
|
let metadata;
|
||||||
let videoUrl = getSongMenu()
|
let videoUrl = getSongMenu()
|
||||||
.querySelector("ytmusic-menu-navigation-item-renderer")
|
?.querySelector('ytmusic-menu-navigation-item-renderer.iron-selected[tabindex="0"]')
|
||||||
.querySelector("#navigation-endpoint")
|
?.querySelector("#navigation-endpoint")
|
||||||
.getAttribute("href");
|
?.getAttribute("href");
|
||||||
if (videoUrl) {
|
if (videoUrl) {
|
||||||
videoUrl = baseUrl + "/" + videoUrl;
|
videoUrl = baseUrl + "/" + videoUrl;
|
||||||
metadata = null;
|
metadata = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user