diff --git a/assets/radar-rules.js b/assets/radar-rules.js index 2e1b6093c..71f76d3f3 100755 --- a/assets/radar-rules.js +++ b/assets/radar-rules.js @@ -1841,4 +1841,27 @@ }, ], }, + 'sexinsex.net': { + _name: 'sexinsex', + '.': [ + { + title: '分区帖子', + docs: 'https://docs.rsshub.app/multimedia.html#sexinsex', + source: '/bbs/:path', + target: (params, url) => { + let pid, typeid; + const static_matched = params.path.match(/forum-(\d+)-\d+.html/); + if (static_matched) { + pid = static_matched[1]; + } else if (params.path === 'forumdisplay.php') { + pid = new URL(url).searchParams.get('fid'); + typeid = new URL(url).searchParams.get('typeid'); + } else { + return false; + } + return `/sexinsex/${pid}/${typeid ? typeid : ''}`; + }, + }, + ], + }, });