mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-15 12:21:47 +00:00
lint
This commit is contained in:
@ -42,9 +42,10 @@ global.download = () => {
|
|||||||
triggerAction(CHANNEL, ACTIONS.PROGRESS, 2); // starts with indefinite progress bar
|
triggerAction(CHANNEL, ACTIONS.PROGRESS, 2); // starts with indefinite progress bar
|
||||||
let metadata;
|
let metadata;
|
||||||
let videoUrl = getSongMenu()
|
let videoUrl = getSongMenu()
|
||||||
?.querySelector('ytmusic-menu-navigation-item-renderer.iron-selected[tabindex="0"]')
|
// selector of first button which is always "Start Radio"
|
||||||
?.querySelector("#navigation-endpoint")
|
?.querySelector('ytmusic-menu-navigation-item-renderer.iron-selected[tabindex="0"] #navigation-endpoint')
|
||||||
?.getAttribute("href");
|
?.getAttribute("href");
|
||||||
|
console.log(videoUrl)
|
||||||
if (videoUrl) {
|
if (videoUrl) {
|
||||||
videoUrl = baseUrl + "/" + videoUrl;
|
videoUrl = baseUrl + "/" + videoUrl;
|
||||||
metadata = null;
|
metadata = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user