1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00
This commit is contained in:
Daniel Neto 2024-08-21 11:46:58 -03:00
parent d7965a01b8
commit a487e1dee3
2 changed files with 12 additions and 1 deletions

View file

@ -18,7 +18,7 @@ $spritFile = 'assets/thumbsSprit.jpg';
$subtitleSRT = 'assets/subtitle.srt';
$subtitleVTT = 'assets/subtitle.vtt';
$totalVideos = 50;
$totalPlaylists = 10;
$totalPlaylists = 60;
$totalVideosPerPlaylist = 30;
$totalCategories = 10;
$totalSubCategories = 5;
@ -106,6 +106,16 @@ for ($i = 0; $i < $totalVideos; $i++) {
AVideoPlugin::loadPlugin('PlayLists');
if(empty($newVideosIds)){
$global['rowCount'] = 99999;
$videos = Video::getAllVideosLight("", false, true, false);
$newVideosIds = array();
foreach ($videos as $key => $video) {
$newVideosIds[] = $video['id'];
}
}
for ($i = 0; $i < $totalPlaylists; $i++) {
$name = "Playlist test autogenerated $i " . date('Y/m/d H:i:s');
$playlist = new PlayList(0);

View file

@ -218,6 +218,7 @@ class PlayList extends ObjectYPT
foreach ($fullData as $row) {
//$row = cleanUpRowFromDatabase($row);
$row['name_translated'] = __($row['name']);
_error_log("static::getVideosFromPlaylist {$row['id']}");
$row['videos'] = static::getVideosFromPlaylist($row['id'], false);
$row['isFavorite'] = false;
$row['isWatchLater'] = false;