Format front downloader

This commit is contained in:
TC
2021-04-03 12:01:31 +02:00
parent b5c60ee6a9
commit d5a2c1cad6

View File

@ -42,7 +42,9 @@ global.download = () => {
.querySelector("ytmusic-menu-navigation-item-renderer")
.querySelector("#navigation-endpoint")
.getAttribute("href");
videoUrl = !videoUrl ? (global.songInfo.url || window.location.href) : (baseUrl + videoUrl);
videoUrl = !videoUrl
? global.songInfo.url || window.location.href
: baseUrl + videoUrl;
downloadVideoToMP3(
videoUrl,