refactor: 去掉所有默认脚本中的 import groovy.xml.XmlSlurper,引擎 SCRIPT_PREFIX 已注入 import groovy.xml.*
This commit is contained in:
@@ -2,8 +2,6 @@
|
||||
// 适用: RED / OPS / BHD / PTP 等 Gazelle 架构站点
|
||||
// 覆盖: 搜索 / 种子详情 / 首页
|
||||
|
||||
import groovy.xml.XmlSlurper
|
||||
|
||||
Map parse(String content, String url) {
|
||||
def doc = jsoup.parse(content)
|
||||
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
// 适用: M-Team 及其 API 兼容站点
|
||||
// 覆盖: 用户信息 / 做种统计 / 搜索
|
||||
|
||||
import groovy.xml.XmlSlurper
|
||||
|
||||
final String API_BASE = "https://api.m-team.io"
|
||||
|
||||
Map parse(String content, String url) {
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
// NexusPHP 站点默认脚本
|
||||
// 适用: PThome / HDSky / HDFans / OurBits 等
|
||||
|
||||
import groovy.xml.XmlSlurper
|
||||
|
||||
Map parse(String content, String url) {
|
||||
def doc = Jsoup.parse(content)
|
||||
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
// 适用: BLU / TL / ACM 等 UNIT3D 架构站点(HTML + 可选 API)
|
||||
// 覆盖: 搜索 / 种子详情 / 首页
|
||||
|
||||
import groovy.xml.XmlSlurper
|
||||
|
||||
Map parse(String content, String url) {
|
||||
def doc = jsoup.parse(content)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user