fixed video url, removed useless char from google request url
This commit is contained in:
parent
df195343a1
commit
2a9526cbac
2 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||
{
|
||||
|
|
|
@ -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"];
|
||||
|
|
Loading…
Reference in a new issue