refactor: 去掉所有默认脚本中的 import groovy.xml.XmlSlurper,引擎 SCRIPT_PREFIX 已注入 import groovy.xml.*

This commit is contained in:
mediabot-pt
2026-07-08 23:12:50 +08:00
parent 3dbc544881
commit 30b7b5d29f
4 changed files with 0 additions and 8 deletions

View File

@@ -2,8 +2,6 @@
// 适用: RED / OPS / BHD / PTP 等 Gazelle 架构站点
// 覆盖: 搜索 / 种子详情 / 首页
import groovy.xml.XmlSlurper
Map parse(String content, String url) {
def doc = jsoup.parse(content)

View File

@@ -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) {

View File

@@ -1,8 +1,6 @@
// NexusPHP 站点默认脚本
// 适用: PThome / HDSky / HDFans / OurBits 等
import groovy.xml.XmlSlurper
Map parse(String content, String url) {
def doc = Jsoup.parse(content)

View File

@@ -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)