Browse Source

fixed video url, removed useless char from google request url

hnhx 2 years ago
parent
commit
2a9526cbac
2 changed files with 2 additions and 2 deletions
  1. 1 1
      engines/google/text.php
  2. 1 1
      engines/invidious/video.php

+ 1 - 1
engines/google/text.php

@@ -10,7 +10,7 @@
         $domain = $config->google_domain;
         $language = isset($_COOKIE["google_language"]) ? htmlspecialchars($_COOKIE["google_language"]) : $config->google_language;
         
-        $url = "https://www.google.$domain/search?&q=$query_encoded&start=$page";
+        $url = "https://www.google.$domain/search?q=$query_encoded&start=$page";
 
         if (3 > strlen($language))
         {

+ 1 - 1
engines/invidious/video.php

@@ -16,7 +16,7 @@
             if ($response["type"] == "video")
             {
                 $title = $response["title"];
-                $url = $instance_url . "/watch?v=" . $response["videoId"];
+                $url = "https://youtube.com/watch?v=" . $response["videoId"];
                 $url = check_for_privacy_frontend($url);
                 $uploader = $response["author"];
                 $views = $response["viewCount"];