mirror of
https://github.com/hnhx/librex.git
synced 2025-04-29 14:09:27 -04:00
fixed video api
This commit is contained in:
parent
918e903e4d
commit
1f54206a5e
1 changed files with 3 additions and 3 deletions
6
api.php
6
api.php
|
@ -34,8 +34,8 @@
|
||||||
$results = get_image_results($query_encoded, $page);
|
$results = get_image_results($query_encoded, $page);
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
require "engines/google/video.php";
|
require "engines/brave/video.php";
|
||||||
$results = get_video_results($query_encoded, $page);
|
$results = get_video_results($query_encoded);
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
if ($config->disable_bittorent_search)
|
if ($config->disable_bittorent_search)
|
||||||
|
@ -54,4 +54,4 @@
|
||||||
|
|
||||||
header("Content-Type: application/json");
|
header("Content-Type: application/json");
|
||||||
echo json_encode($results, JSON_PRETTY_PRINT);
|
echo json_encode($results, JSON_PRETTY_PRINT);
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Add table
Reference in a new issue