" . __('Sorry you do not have anything available') . "
"; } die(""); } $playListsObj = AVideoPlugin::getObjectData("PlayLists"); TimeLogEnd($timeLog2, __LINE__); $channelName = @$_GET['channelName']; unset($_GET['channelName']); $startC = microtime(true); TimeLogEnd($timeLog2, __LINE__); $countSuccess = 0; $get = []; if (!empty($_GET['channelName'])) { $get = ['channelName' => $_GET['channelName']]; } $program = AVideoPlugin::loadPluginIfEnabled('PlayLists'); foreach ($playlists as $key => $playlist) { @$timesC[__LINE__] += microtime(true) - $startC; $startC = microtime(true); $_REQUEST['current'] = 1; $_REQUEST['rowCount'] = 6; $videosArrayId = PlayList::getVideosIdFromPlaylist($playlist['id']); $_REQUEST['current'] = 1; $_REQUEST['rowCount'] = 6; @$timesC[__LINE__] += microtime(true) - $startC; $startC = microtime(true); $rowCount = $_POST['rowCount']; $_REQUEST['rowCount'] = 6; //getAllVideos($status = "viewable", $showOnlyLoggedUserVideos = false, $ignoreGroup = false, $videosArrayId = array(), $getStatistcs = false, $showUnlisted = false, $activeUsersOnly = true) if (empty($videosArrayId) && ($playlist['status'] == "favorite" || $playlist['status'] == "watch_later")) { unset($playlists[$key]); continue; } elseif (empty($videosArrayId)) { $videosP = []; } else { $videosP = Video::getAllVideos("viewable", false, true, $videosArrayId, false, true); //var_dump($videosArrayId);exit; } //var_dump($videosArrayId, $videosP); exit; $totalDuration = 0; foreach ($videosP as $value) { //var_dump($value['id'], $value['title'], $value['duration']);echo '
'; $totalDuration += durationToSeconds($value['duration']); } $_REQUEST['rowCount'] = $rowCount; @$timesC[__LINE__] += microtime(true) - $startC; $startC = microtime(true); //_error_log("channelPlaylist videosP: ".json_encode($videosP)); //$videosP = PlayList::sortVideos($videosP, $videosArrayId); @$timesC[__LINE__] += microtime(true) - $startC; $startC = microtime(true); //_error_log("channelPlaylist videosP2: ".json_encode($videosP)); //_error_log("channelPlaylist videosArrayId: ".json_encode($videosArrayId)); @$timesC[__LINE__] += microtime(true) - $startC; $startC = microtime(true); $countSuccess++; ?>
">
getIconClass())) { ?> getName(); ?> label === __("Group")) { ?> text; ?>
label === __("Group")) { ?> text; ?>
doNotDisplayViews)) { ?>