feat: PageKey增加RSS,默认脚本模板增加parseRss方法
This commit is contained in:
@@ -9,10 +9,15 @@ Map parse(String content, String url) {
|
||||
if (url.contains('/attendance.php')) return parseSign(doc)
|
||||
if (url.contains('/index.php') && !url.contains('?')) return parseUserInfo(doc)
|
||||
if (url.contains('/usercp.php')) return parseUserPanel(doc)
|
||||
if (url.contains('/torrentrss.php') || url.contains('/rss')) return parseRss(doc)
|
||||
|
||||
return [pageName: '未知页面', message: "未配置: ${url}"]
|
||||
}
|
||||
|
||||
private Map parseRss(doc) {
|
||||
return [pageName: 'RSS', message: 'RSS 内容由 Java 层解析']
|
||||
}
|
||||
|
||||
private Map parseUserInfo(doc) {
|
||||
def fields = [:]
|
||||
def el = doc.selectFirst('#info_block, td.bottom.clearfix, .userbar')
|
||||
|
||||
Reference in New Issue
Block a user