mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
32 lines
800 B
PHP
32 lines
800 B
PHP
<?php
|
|
|
|
use App\Models\Video;
|
|
use App\Models\Release;
|
|
use Illuminate\Support\Facades\Auth;
|
|
|
|
if (! Auth::check()) {
|
|
$page->show403();
|
|
}
|
|
|
|
if (! request()->has('id')) {
|
|
$page->show404();
|
|
}
|
|
|
|
$rel = Release::getByGuid(request()->input('id'));
|
|
|
|
if (! $rel) {
|
|
echo 'No tv info';
|
|
} else {
|
|
echo "<ul class=\"ui-tooltip-nntmux\">\n";
|
|
echo '<li>'.htmlentities($rel['title'], ENT_QUOTES)."</li>\n";
|
|
echo '<li>Aired on '.date('F j, Y', strtotime($rel['firstaired']))."</li>\n";
|
|
echo '</ul>';
|
|
|
|
if (isset($rel['videos_id']) && $rel['videos_id'] > 0) {
|
|
$show = Video::getByVideoID($rel['videos_id']);
|
|
if (count($show) > 0 && (int) $show['image'] !== 0) {
|
|
echo '<img class="shadow" src="/covers/tvshows/'.$show['id'].'.jpg" width="180"/>';
|
|
}
|
|
}
|
|
}
|