mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +02:00
Update
This commit is contained in:
parent
d7965a01b8
commit
a487e1dee3
2 changed files with 12 additions and 1 deletions
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue