diff --git a/view/channelPlaylistItems.php b/view/channelPlaylistItems.php index 6b43a5e44..196bdf9a6 100644 --- a/view/channelPlaylistItems.php +++ b/view/channelPlaylistItems.php @@ -1,596 +1,598 @@
".__('Sorry you do not have anything available')."
"; + + if ($current == 1) { + echo "
" . __('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 = array(); if (!empty($_GET['channelName'])) { $get = array('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; } else if (empty($videosArrayId)) { $videosP = array(); } else { $videosP = Video::getAllVideos("viewable", false, true, $videosArrayId, false, true); }//var_dump($videosArrayId, $videosP); exit; $totalDuration = 0; foreach ($videosP as $value) { $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)); $playListButtons = AVideoPlugin::getPlayListButtons($playlist['id']); @$timesC[__LINE__] += microtime(true) - $startC; $startC = microtime(true); $countSuccess++; ?>
()
embedCodeTemplate); echo ($code); ?>'/>
thumbsGif; $poster = $images->thumbsJpg; $category = new Category($serie['categories_id']); ?>
<?php echo $serie['title']; ?>
- -

+
+ - - getIconClass())) { - ?> - +
+ - getName(); ?> - - label === __("Group")) { + if (!empty($category->getIconClass())) { + ?> + + - text; ?> - getName(); ?> + + label === __("Group")) { + ?> + text; ?> + + ?> +

thumbsGif; $poster = $images->thumbsJpg; $class = ""; ?>
- - + +
+ - +

\ No newline at end of file diff --git a/view/channelProgram.php b/view/channelProgram.php index 6f901de4d..021622a3c 100644 --- a/view/channelProgram.php +++ b/view/channelProgram.php @@ -1,737 +1,737 @@ getUsers_id(); } $user_id = $_GET['user_id']; $publicOnly = true; $isMyChannel = false; if (User::isLogged() && $user_id == User::getId()) { $publicOnly = false; $isMyChannel = true; } $programs = PlayList::getAllFromUser($user_id, $publicOnly, false, @$_GET['program_id']); if (empty($programs)) { $programs = PlayList::getAllFromUser($user_id, $publicOnly); } else { $videosArrayId = PlayList::getVideosIdFromPlaylist($_GET['program_id']); $videos_id = @$videosArrayId[0]; } $playListsObj = AVideoPlugin::getObjectData("PlayLists"); ?> <?php echo __("Program") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?> \ No newline at end of file