mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-15 04:11:47 +00:00
Format front downloader
This commit is contained in:
@ -42,7 +42,9 @@ global.download = () => {
|
|||||||
.querySelector("ytmusic-menu-navigation-item-renderer")
|
.querySelector("ytmusic-menu-navigation-item-renderer")
|
||||||
.querySelector("#navigation-endpoint")
|
.querySelector("#navigation-endpoint")
|
||||||
.getAttribute("href");
|
.getAttribute("href");
|
||||||
videoUrl = !videoUrl ? (global.songInfo.url || window.location.href) : (baseUrl + videoUrl);
|
videoUrl = !videoUrl
|
||||||
|
? global.songInfo.url || window.location.href
|
||||||
|
: baseUrl + videoUrl;
|
||||||
|
|
||||||
downloadVideoToMP3(
|
downloadVideoToMP3(
|
||||||
videoUrl,
|
videoUrl,
|
||||||
|
|||||||
Reference in New Issue
Block a user