Compare commits

..

2 Commits

Author SHA1 Message Date
268351f31e Cleanup 2024-10-13 23:30:48 +02:00
43efe20d8c Update hotkey script 2024-10-13 23:30:34 +02:00
2 changed files with 2 additions and 1 deletions

View File

@@ -30,6 +30,7 @@ func Download(url string) error {
_, ongoing := ongoingDownloads[url] _, ongoing := ongoingDownloads[url]
if ongoing { if ongoing {
// return fmt.Errorf("Download %s is already ongoing", url) // return fmt.Errorf("Download %s is already ongoing", url)
Warning.Printf("Download %s is already ongoing", url)
return nil return nil
} }
ongoingDownloadsMutex.Lock() ongoingDownloadsMutex.Lock()

View File

@@ -22,7 +22,7 @@ if (!(titleNode && titleNode.matches(selector))) {
link = window.location.origin + link; link = window.location.origin + link;
} }
console.log(link); console.log(link);
fetch("http://localhost:5000/download", { fetch("https://nsq.site.quack-lab.dev/pub?topic=ytdqueue", {
method: "POST", method: "POST",
headers: { headers: {
"Content-Type": "application/json", "Content-Type": "application/json",