fixed video url, removed useless char from google request url

This commit is contained in:
hnhx 2023-02-02 16:25:09 +01:00
parent df195343a1
commit 2a9526cbac
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@
$domain = $config->google_domain; $domain = $config->google_domain;
$language = isset($_COOKIE["google_language"]) ? htmlspecialchars($_COOKIE["google_language"]) : $config->google_language; $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)) if (3 > strlen($language))
{ {

View file

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