From 6c9869e18f290bc5c91af3f3567c2e6aa16fd3d1 Mon Sep 17 00:00:00 2001
From: uh_wot <3631986-uh_wot@users.noreply.gitlab.com>
Date: Thu, 16 Apr 2020 14:56:27 +0200
Subject: [PATCH] fixed download via URL

---
 public/js/app/search.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/public/js/app/search.js b/public/js/app/search.js
index c9c2544..9ad706c 100644
--- a/public/js/app/search.js
+++ b/public/js/app/search.js
@@ -154,7 +154,7 @@ $("#searchbar").keyup(function(e){
 		term = this.value
 		console.log(term)
 		if (isValidURL(term))
-			socket.emit("addToQueue", {url: term});
+			sendAddToQueue(term);
 		else{
 			document.getElementById("search_tab_content").style.display = "none";
 			socket.emit("mainSearch", {term: term});