Fix: Modify the hyphen FC2 format to underscore format.

This commit is contained in:
gdjdkid committed 2026-03-21 13:12:25 +08:00
1 parent aca5e6dda6
commit d7671e38d8
2 files changed
+4 -5

No files matched your search

+3 -4
View File
@@ -263,10 +263,9 @@ function parseJavdb(html, queryId) {
// ─── 主入口:依次尝试三个数据源 ─────────────────────────
export async function search(id) {
// 自动识别:FC2 格式 031926_100 → 031926-100(JAVDB的FC2格式)
if (/^\d{5,6}_\d+$/.test(id)) {
const parts = id.split('_');
id = `${parts[0]}-${parts[1]}`;
// 自动识别:用户输入连字符FC2格式 031926-100 → 转换为下划线格式 031926_100(JAVDB的FC2格式)
if (/^\d{5,6}-\d+$/.test(id)) {
id = id.replace('-', '_');
console.log(chalk.gray(` FC2番号已转换为: ${id}`));
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "javinfo",
"version": "1.1.5",
"version": "1.1.6",
"description": "AV番号命令行查询工具",
"main": "./index.js",
"type": "module",