diff --git a/src/admin/stream_view.php b/src/admin/stream_view.php index 8b8e5c77..d2d9c983 100644 --- a/src/admin/stream_view.php +++ b/src/admin/stream_view.php @@ -378,8 +378,7 @@ if ($rStream['type'] == 1) { echo "\t\t\t\t\t\t\t" . '' . "\r\n\t\t\t\t\t\t" . '' . "\r\n" . ' '; } - if (!(0 < $rStream['tv_archive_server_id'] && 0 < $rStream['tv_archive_duration'])) { - } else { + if (0 < $rStream['tv_archive_server_id'] && 0 < $rStream['tv_archive_duration']) { $rArchive = getArchive($rStream['id']); echo '
' . "\r\n\t\t\t\t\t\t\t" . '
' . "\r\n\t\t\t\t\t\t\t\t" . '' . "\r\n\t\t\t\t\t\t\t\t\t" . '' . "\r\n\t\t\t\t\t\t\t\t\t\t" . '' . "\r\n\t\t\t\t\t\t\t\t\t\t\t" . '' . "\r\n\t\t\t\t\t\t\t\t\t\t\t" . '' . "\r\n" . ' ' . "\r\n" . ' ' . "\r\n\t\t\t\t\t\t\t\t\t\t" . '' . "\r\n\t\t\t\t\t\t\t\t\t" . '' . "\r\n\t\t\t\t\t\t\t\t\t" . '' . "\r\n" . ' '; diff --git a/src/admin/table.php b/src/admin/table.php index f383a86c..62e30734 100644 --- a/src/admin/table.php +++ b/src/admin/table.php @@ -1048,17 +1048,16 @@ if ($rType == "lines") { if (1 < count($rCategoryIDs)) { $rCategory .= " (+" . (count($rCategoryIDs) - 1) . " others)"; } - if (0 < $rRow["tv_archive_duration"] && 0 < $rRow["tv_archive_server_id"]) { - "  "; - $rRow >>= "stream_display_name"; + if (0 < $rRow['tv_archive_duration'] && 0 < $rRow['tv_archive_server_id']) { + $rRow['stream_display_name'] .= "  "; } - $adaptiveLinks = json_decode($rRow["adaptive_link"], true); + $adaptiveLinks = json_decode($rRow['adaptive_link'], true); + if (is_array($adaptiveLinks) && count($adaptiveLinks) > 0) { - "  "; - $rRow >>= "stream_display_name"; + $rRow['stream_display_name'] .= "  "; } - if ($rRow["title_sync"]) { - $rRow >>= "stream_display_name"; + if ($rRow['title_sync']) { + $rRow['stream_display_name'] .= "  "; } $rStreamName = "" . $rRow["stream_display_name"] . "
" . $rCategory . "
"; if ($rRow["server_name"]) { diff --git a/src/includes/admin.php b/src/includes/admin.php index 30caa88d..9561f7fd 100644 --- a/src/includes/admin.php +++ b/src/includes/admin.php @@ -415,8 +415,7 @@ function getArchive($rStreamID) { $rEPG = getchannelepg($rStreamID, true); $rFiles = getArchiveFiles($rStream['tv_archive_server_id'], $rStreamID); - if (!(0 < count($rFiles) && 0 < count($rEPG))) { - } else { + if (!empty($rFiles) && !empty($rEPG)) { foreach ($rFiles as $rFile) { $rFilename = pathinfo($rFile)['filename']; $rTimestamp = strtotime(explode(':', $rFilename)[0] . 'T' . implode(':', explode('-', explode(':', $rFilename)[1])) . ':00Z ' . str_replace(':', '', gmdate('P'))); @@ -433,10 +432,8 @@ function getArchive($rStreamID) { } } - if (!$rEPGID) { - } else { - if (isset($rReturn[$rEPGID])) { - } else { + if ($rEPGID) { + if (!isset($rReturn[$rEPGID])) { $rReturn[$rEPGID] = $rEPG[$rEPGID]; $rReturn[$rEPGID]['archive_stop'] = null; $rReturn[$rEPGID]['archive_start'] = $rReturn[$rEPGID]['archive_stop'];
DateTitleStatusPlayer