mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-30 01:38:54 +00:00
24fa162413
[ci skip] [skip ci]
29 lines
778 B
PHP
Executable File
29 lines
778 B
PHP
Executable File
<?php
|
|
|
|
use nntmux\http\RSS;
|
|
|
|
$rss = new RSS(['Settings' => $page->settings]);
|
|
|
|
$page->title = 'RSS Info';
|
|
$page->meta_title = 'RSS Help Topics';
|
|
$page->meta_keywords = 'view,nzb,api,details,help,json,rss,atom';
|
|
$page->meta_description = 'View description of the site Nzb RSS.';
|
|
|
|
$firstShow = $rss->getFirstInstance('videos_id', 'releases', 'id');
|
|
$firstAni = $rss->getFirstInstance('anidbid', 'releases', 'id');
|
|
|
|
if (isset($firstShow['videos_id'])) {
|
|
$page->smarty->assign('show', $firstShow['videos_id']);
|
|
} else {
|
|
$page->smarty->assign('show', -1);
|
|
}
|
|
|
|
if (isset($firstAni['anidbid'])) {
|
|
$page->smarty->assign('anidb', $firstAni['anidbid']);
|
|
} else {
|
|
$page->smarty->assign('anidb', -1);
|
|
}
|
|
|
|
$page->content = $page->smarty->fetch('rssdesc.tpl');
|
|
$page->render();
|