Compare commits
2 Commits
8d55bcb5ee
...
268351f31e
Author | SHA1 | Date | |
---|---|---|---|
268351f31e | |||
43efe20d8c |
@@ -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()
|
||||||
|
@@ -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",
|
||||||
|
Reference in New Issue
Block a user