improve torrent rss

This commit is contained in:
xiaomlove
2023-01-17 06:13:50 +08:00
parent b29f321b01
commit 1031056830
2 changed files with 75 additions and 42 deletions

View File

@@ -40,7 +40,11 @@ if ($showaudiocodec) $audiocodecs = searchbox_item_list("audiocodecs", $brsectio
stdhead($lang_getrss['head_rss_feeds']);
$query = [];
$allowed_showrows=array('10','50','100','200');
$stickyTypes = apply_filter('rss_sticky_types', ['first' => nexus_trans('torrent.pos_state_sticky'), 'second' => nexus_trans('torrent.pos_state_r_sticky')]);
$stickyTypes = [
0 => nexus_trans('torrent.pos_state_normal'),
1 => nexus_trans('torrent.pos_state_sticky'),
2 => nexus_trans('torrent.pos_state_r_sticky')
];
$query[] = "passkey=" . $CURUSER['passkey'];
if ($_SERVER['REQUEST_METHOD'] == "POST") {
$link = get_protocol_prefix(). $BASEURL ."/torrentrss.php";