Browse Source

fix: correct link parameter

Adam Douglas 4 years ago
parent
commit
0aff01f220
2 changed files with 4 additions and 4 deletions
  1. 2 2
      assets/js/search.js
  2. 2 2
      providers.json

+ 2 - 2
assets/js/search.js

@@ -87,7 +87,7 @@ function search(text) {
                     window.location = "https://trakt.tv/search?query=" + subtext;
                     break;
                 case "tv":
-                    window.location = "https://www.thetvdb.com/search?q=" + subtext;
+                    window.location = "https://www.thetvdb.com/search?query=" + subtext;
                     break;
                 case "y":
                     window.location = "https://www.youtube.com/results?search_query=" + subtext;
@@ -139,4 +139,4 @@ function containsProtocol(str) {
 String.prototype.replaceAll = function(search, replacement) {
     var target = this;
     return target.split(search).join(replacement);
-};
+};

+ 2 - 2
providers.json

@@ -9,7 +9,7 @@
         {"name":"Qwant","url":"https://www.qwant.com/?q=","prefix":"/q"},
         {"name":"Soundcloud","url":"https://soundcloud.com/search?q=","prefix":"/so"},
         {"name":"Spotify","url":"https://open.spotify.com/search/results/","prefix":"/s"},
-        {"name":"TheTVDB","url":"https://www.thetvdb.com/search?q=","prefix":"/tv"},
+        {"name":"TheTVDB","url":"https://www.thetvdb.com/search?query=","prefix":"/tv"},
         {"name":"Trakt","url":"https://trakt.tv/search?query=","prefix":"/t"}
     ]
-}
+}