1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-06 03:50:04 +02:00
This commit is contained in:
DanieL 2022-08-31 16:15:50 -03:00
parent 9bd2fe59aa
commit 31c583da44

View file

@ -349,7 +349,8 @@ class API extends PluginAbstract {
$status = "";
$ignoreGroup = true;
}
$rows = [Video::getVideo($parameters['videos_id'], $status, $ignoreGroup)];
// getVideo($id = "", $status = "viewable", $ignoreGroup = false, $random = false, $suggestedOnly = false, $showUnlisted = false, $ignoreTags = false, $activeUsersOnly = true)
$rows = [Video::getVideo($parameters['videos_id'], $status, $ignoreGroup, false, false, true)];
$totalRows = empty($rows) ? 0 : 1;
} elseif (self::isAPISecretValid()) {
$rows = Video::getAllVideos("viewable", false, true);