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;
$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))
{

View File

@ -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"];