1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00

Allow you to search on the API for video type

This commit is contained in:
DanieL 2022-06-30 13:34:35 -03:00
parent a1462fd633
commit 001c1778e8

View file

@ -804,6 +804,8 @@ if (!class_exists('Video')) {
} else {
$sql .= " AND v.type = '{$_SESSION['type']}' ";
}
} else if(!empty($_REQUEST['videoType']) && in_array($_REQUEST['videoType'], self::$typeOptions)){
$sql .= " AND v.type = '{$_REQUEST['videoType']}' ";
}
if (!empty($videosArrayId) && is_array($videosArrayId)) {