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:
parent
a1462fd633
commit
001c1778e8
1 changed files with 2 additions and 0 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue