Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1284
新增 Bibliotik 站点适配。
引擎选型
Bibliotik 是 WhatCD/Gazelle 血统,但站点路由是 REST 风格:
/torrents/、/torrents/<id>、/users/<id>、/users/<id>/seeding。本仓库的
schemas/Gazelle.ts与GazelleJSONAPI.ts都硬编码了/torrents.php、user.php?id=、table.torrent_table等假设,直接复用会全部失效,因此按AbstractPrivateSite+ 自定义类实现。依据:PT-Plugin-Plus 与 Jackett 两处既有实现均为非
.php路径,可相互印证。主要配置(依据以 PT-Plugin-Plus 为主,Jackett 对照)
urlsuggcf://ovoyvbgvx.zr/(rot13)categorycat[]多选searchGET /torrents/,参数search+orderby+orderrowstable#torrents_table > tbody > tr:has(.title)sizespan[data-bytecount],回落文本解析linka[href*='/download']noLoginAssertform#loginformuserInfo/users/$id$取上传/下载/等级/注册时间自定义类覆写
getUserInfoResult,遍历/users/<id>/seeding分页累加seeding/seedingSize(最大页从.pagination ... Last >>的page=解析)。顺带修掉的一个通用坑
parseWholeTorrentFromRow会对time再跑一次parseTimeWithZone,而它按timezoneOffset重新拼字符串。实测确认:若<time datetime>带显式时区(...+00:00或Z),在非 UTC 机器上会被二次换算,产生 8 小时偏移。因此本站 filters 中先剥离时区后缀再交给
parseTime。仓库中rousipro、nordicbytes、clearjav等同类attr: datetime站点存在相同偏差,可作为后续统一处理项。校验
pnpm check(vue-tsc --noEmit):通过version一条提示——AbstractPrivateSite约定为 -1,仓库现状普遍写 1,此处按现状保持站点内一致)prettier:已格式化(pre-commit hook 已执行)待确认
levelRequirements未定义:PT-Plugin-Plus 与 Jackett 均未提供等级门槛数据,不做猜测。若有站内规则页信息可后续补充。category的 value→name 映射取自 Jackett caps,建议有账号者实机复核。