mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 02:31:45 +00:00
Use metadata URL in downloader (fallback to current URL)
This commit is contained in:
@ -35,7 +35,7 @@ const reinit = () => {
|
||||
// contextBridge.exposeInMainWorld("downloader", {
|
||||
// download: () => {
|
||||
global.download = () => {
|
||||
const videoUrl = window.location.href;
|
||||
const videoUrl = global.songInfo.url || window.location.href;
|
||||
|
||||
downloadVideoToMP3(
|
||||
videoUrl,
|
||||
|
||||
Reference in New Issue
Block a user