From d5a2c1cad686c025dd13d8bd5250736c3fbc5119 Mon Sep 17 00:00:00 2001 From: TC Date: Sat, 3 Apr 2021 12:01:31 +0200 Subject: [PATCH] Format front downloader --- plugins/downloader/front.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/downloader/front.js b/plugins/downloader/front.js index 1e628e1a..2c220546 100644 --- a/plugins/downloader/front.js +++ b/plugins/downloader/front.js @@ -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,