Peach: Local-first video metadata scraper and media manager.
feat(downloads): 只给种子链接的索引器也能出磁力候选
longmeidaoa2068b9e397d
diff --git a/docs/PRODUCT_BACKLOG.md b/docs/PRODUCT_BACKLOG.mdindex dccf80a55..d11bf63c5 100644--- a/docs/PRODUCT_BACKLOG.md+++ b/docs/PRODUCT_BACKLOG.md@@ -41,7 +41,7 @@等待条件与开发优先级分开;条件满足后再安排批次,不把历史数字直接用作执行计划。- 真实账号验收:操作 43 需要用户完成 PikPak 浏览器登录,另验磁力提交与两小时以上的过期续期。-- 真实索引器验收:本机 Prowlarr(9696)已接 sukebei、OneJAV、Free JAV Torrent,待用户在配置页填入地址与 API key 后做第 43 条的真实搜索验收。sukebei 返回 `infohash` 可直接成候选;OneJAV、Free JAV Torrent 只给 .torrent 链接,要先取种子算 info hash 才能用;0Magnet 被 Cloudflare 拦,需 FlareSolverr。+- 真实索引器验收:本机 Prowlarr(9696)接 sukebei 的番号搜索已在生产跑通;OneJAV、Free JAV Torrent 经种子换 infohash 后接入。0Magnet 被 Cloudflare 拦,需 FlareSolverr。- 预算与产品决定:操作 12 的本地下载预算;25 的 NFO 写入边界;前端全局文字亮度与图标选择。- 真实写入与维护窗口:操作 3、4、5、8、14、19、24、26、42;先刷新预览,涉及账本、生产入口或凭据时取得当轮授权。- 人工复核与证据:操作 2、9、17、18、27、30、32、33、34、37、38、41;32 的形状决定影响 35。操作 1 等历史逐行证据,有新增证据再追溯。diff --git a/docs/REUSE.md b/docs/REUSE.mdindex 5fe49d8d5..45bd8f9ab 100644--- a/docs/REUSE.md+++ b/docs/REUSE.md@@ -44,10 +44,12 @@ FC2 卖家名册复用 `sources/fc2.py` 的 `label`、`seller_url` 来源契约`resource_search.py` 使用 Torznab 0.2.1(MIT,Python ≥3.10,支持项目 Python 3.12–3.14)的 `parse_capabilities` 与 `parse_torznab`。源码固定标签 v0.2.1,项目仍标为 Alpha;离线 XML POC 已覆盖 caps、GUID 磁力、体积、做种、连接数和重复标签。PyPI 包新增一项直接依赖,requests 为已有传递依赖;实际索引器验收需要用户配置端点。-请求复用 HTTPX 0.28.1。SDK 自带 requests 请求层没有响应大小上限,异常可能带完整 URL,故只使用其解析器。Peach 负责每源 caps 和 search 两次请求、响应上限 2 MiB、每轮最多四源、45 秒预算、禁用重定向、脱敏错误、XML 实体声明拒收,以及体积、做种、黑名单、质量排序和最多五个候选。标题番号复用 `feeds.scan_code`,身份与中字、无码版次复用 `catalog_rules`。凭据复用 `CredentialStore`,不登记跨机同步字段;换端点不会沿用已保存的 API key。+请求复用 HTTPX 0.28.1。SDK 自带 requests 请求层没有响应大小上限,异常可能带完整 URL,故只使用其解析器。Peach 负责每源 caps 和 search 两次请求、至多六份种子、响应上限 2 MiB、每轮最多四源、45 秒预算、禁用重定向、脱敏错误、XML 实体声明拒收,以及体积、做种、黑名单、质量排序和最多五个候选。标题番号复用 `feeds.scan_code`,身份与中字、无码版次复用 `catalog_rules`。凭据复用 `CredentialStore`,不登记跨机同步字段;换端点不会沿用已保存的 API key。已对照 [Torznab 1.3 规范](https://torznab.github.io/spec-1.3-draft/torznab/Specification-v1.3.html) 与 SakuraMedia `torznab.py`(GPL-3.0,revision `9c6a31915c9a364c9d6717798575daf9445916bd`)的 FC2 查询、磁力字段回退与部分失败边界。SakuraMedia 耦合其 ORM,不作为运行时依赖。候选由活动页填入现有云下载表单,经用户确认后走 `submit_offline_download`。+OneJAV、Free JAV Torrent 只给种子链接。这类条目经索引器同源的下载代理取种子,由 bencode2 0.3.35(MIT,Python ≥3.10,有 cp314 Windows wheel 与纯 Python wheel)解码,再对 info 字典求 SHA-1。实证:真实 sukebei 种子算出的哈希与 Torznab `infohash` 一致;Prowlarr 代理对 OneJAV、Free JAV Torrent 返回 `application/x-bittorrent`。bencode2 和 fastbencode 0.3.11(Apache-2.0)都拒收键乱序的字典,重新编码就是原文。选 bencode2 是因为它有纯 Python 后备。torf(GPL-3.0)功能远超所需,bencode.py(BitTorrent 许可)、bencodepy(2015 年后停更)不采用。+这是实现查找表:每项能力由哪个现成实现承担、Peach 自己只负责哪一段。新增、恢复或重写代码前,按 `.claude/skills/peach-reuse-first/SKILL.md` 先查本文件、当前树、Git 历史和成熟外部实现;旧文件名不存在不等于能力缺失,继任关系见「已删除旧实现与当前继任者」。安装依赖的精确版本由 [Python 清单](../pyproject.toml)、[Python 锁文件](../uv.lock)、[前端清单](../frontend/package.json) 和 [静态依赖清单](../package.json) 维护。本页记录用途、许可证与取舍;取证版本和提交号只代表对应证据。diff --git a/pyproject.toml b/pyproject.tomlindex a64afe3e3..98f39c703 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -32,6 +32,7 @@ dependencies = ["tldextract==5.3.2","APScheduler==3.11.3","beautifulsoup4==4.15.0",+ "bencode2==0.3.35","browserexport==0.4.4","curl_cffi==0.16.3","fastapi==0.141.1",diff --git a/src/peach/resource_search.py b/src/peach/resource_search.pyindex 020558036..546b46679 100644--- a/src/peach/resource_search.py+++ b/src/peach/resource_search.py@@ -2,18 +2,24 @@XML 模型由 torznab 解析;请求、凭据与番号判据由 Peach 管理。搜索只返回候选,下载由用户逐条提交现有云下载入口。配置以一份本机凭据文件原子保存。++OneJAV 一类索引器只给种子文件、不给磁力与 infohash:这类条目经索引器自己的下载代理+取回种子,按 bencode2 解码后对 info 字典求 SHA-1,换成磁力候选。"""from __future__ import annotations+import hashlibimport jsonimport reimport threadingimport timefrom collections import OrderedDict+from collections.abc import Callablefrom dataclasses import dataclassfrom urllib.parse import urlsplitfrom xml.etree.ElementTree import ParseError, fromstring+import bencode2import httpxfrom torznab.exceptions import TorznabAPIErrorfrom torznab.parser import parse_capabilities, parse_torznab@@ -28,6 +34,9 @@ MAX_INDEXERS = 4MAX_BYTES = 2 * 1024 * 1024MAX_RESULTS = 5MAX_ITEMS = 100+#: 每个索引器每轮最多取几份种子:只取番号、体积、做种都已对上的条目。+MAX_TORRENTS = 6+MAX_TORRENT_BYTES = 8 * 1024 * 1024NATURE = "用户自配索引器"@@ -118,8 +127,8 @@ class Filters:def qualities(title: str, tags: list[str], code: str) -> dict:text = " ".join([title, *tags])resolution = next((value for pattern, value in (- (r"(?i)(?<!\w)(?:4k|2160p)(?!\w)", 2160),- (r"(?i)(?<!\w)1080[pi](?!\w)", 1080),+ (r"(?i)(?<!\w)(?:4k|2160p|uhd)(?!\w)", 2160),+ (r"(?i)(?<!\w)(?:1080[pi]|fhd)(?!\w)", 1080),(r"(?i)(?<!\w)720p(?!\w)", 720)) if re.search(pattern, text)), 0)codec = next((value for pattern, value in ((r"(?i)\b(?:h[ ._-]?265|x265|hevc)\b", "HEVC"),@@ -130,7 +139,21 @@ def qualities(title: str, tags: list[str], code: str) -> dict:"uncensored": "无码" in editions or "无码破解" in editions}-def candidate(item, indexer: dict, code: str, filters: Filters) -> dict | None:+def torrent_info_hash(data: bytes) -> str:+ """种子文件的 v1 infohash:info 字典编码后的 SHA-1。++ bencode2 拒收键乱序的字典,所以重新编码的字节就是原文,不会算出另一个哈希。+ """+ meta = bencode2.bdecode(data)+ info = meta.get(b"info") if isinstance(meta, dict) else None+ if not isinstance(info, dict):+ raise ValueError("种子文件缺少 info 字典")+ return hashlib.sha1(bencode2.bencode(info)).hexdigest()+++def candidate(item, indexer: dict, code: str, filters: Filters,+ fetch: Callable[[str], str | None] | None = None) -> dict | None:+ """`fetch` 把索引器给的种子下载地址换成 infohash;条目自带磁力或 infohash 时不调用。"""title = str(item.title or "")[:500]if not same_release_code(scan_code(title), code):return None@@ -138,20 +161,22 @@ def candidate(item, indexer: dict, code: str, filters: Filters) -> dict | None:return Noneif item.seeders is None or item.seeders <= 0:return None- magnet = None+ info_hash = Nonefor raw in (item.magnet_url, item.link, item.guid, item.infohash):if raw:try:- magnet = parse_magnet(raw)+ info_hash = parse_magnet(raw).info_hashbreakexcept ValueError:continue- if magnet is None:+ if info_hash is None and fetch and item.link:+ info_hash = fetch(item.link)+ if info_hash is None:return None# 候选只携带规范 hash,索引器返回的 tracker 与 URL 可能含私有 passkey。quality = qualities(title, item.tags, code)- return {"id": magnet.info_hash, "info_hash": magnet.info_hash,- "uri": f"magnet:?xt=urn:btih:{magnet.info_hash}", "name": title,+ return {"id": info_hash, "info_hash": info_hash,+ "uri": f"magnet:?xt=urn:btih:{info_hash}", "name": title,"size": item.size, "seeders": item.seeders, "peers": item.peers,"date": str(item.pub_date or "")[:100], "source": indexer["name"],"origins": [indexer["name"]], "nature": NATURE, **quality}@@ -180,8 +205,38 @@ def _xml(client: httpx.Client, indexer: dict, params: dict, deadline: float) ->return text+def _torrent_hash(client: httpx.Client, indexer: dict, link: str, deadline: float) -> str | None:+ """经索引器自己的下载代理取种子换 infohash;取不到只丢这一条,不算索引器失败。++ 只请求与 API 地址同源的链接:Prowlarr、Jackett 的下载代理都在自己那台机器上,+ 别处的地址不替索引器去访问。代理改回磁力的重定向直接取 Location。+ """+ api, target = urlsplit(indexer["url"]), urlsplit(link)+ try:+ same_origin = (api.scheme, api.hostname, api.port) == (target.scheme, target.hostname, target.port)+ except ValueError:+ return None+ remaining = deadline - time.monotonic()+ if not same_origin or remaining <= 0:+ return None+ try:+ with client.stream("GET", link, timeout=min(10, remaining)) as response:+ if response.is_redirect:+ return parse_magnet(response.headers.get("location", "")).info_hash+ if response.status_code != 200:+ return None+ content = bytearray()+ for chunk in response.iter_bytes(chunk_size=65536):+ content.extend(chunk)+ if len(content) > MAX_TORRENT_BYTES or time.monotonic() > deadline:+ return None+ return torrent_info_hash(bytes(content))+ except (httpx.HTTPError, ValueError):+ return None++class Search:- """一轮最多四个来源、每源两次请求;同一进程串行并缓存一分钟。"""+ """一轮最多四个来源,每源两次查询、至多六份种子;同一进程串行并缓存一分钟。"""def __init__(self, *, transport=None, clock=time.monotonic):self.transport = transportself.clock = clock@@ -197,7 +252,7 @@ class Search:raise ValueError("索引器数量超过上限")if not active:return {"ok": True, "state": "unavailable", "items": [], "warnings": [],- "error": "请在本机「配置 → 媒体」中添加并启用索引器"}+ "error": "请在本机「配置 → 下载」中添加并启用索引器"}if not self.lock.acquire(blocking=False):return {"ok": False, "state": "busy", "items": [], "warnings": [],"error": "资源搜索正在进行,请稍后重试"}@@ -235,8 +290,15 @@ class Search:items = parse_torznab(_xml(client, indexer, {"t": "search", "q": query, "cat": "6000", "limit": str(limit)}, deadline))successful += 1+ budget = [MAX_TORRENTS]++ def fetch(link: str, indexer=indexer, budget=budget) -> str | None:+ if budget[0] <= 0:+ return None+ budget[0] -= 1+ return _torrent_hash(client, indexer, link, deadline)for item in items[:MAX_ITEMS]:- row = candidate(item, indexer, code, filters)+ row = candidate(item, indexer, code, filters, fetch)if row is None:continueprior = found.get(row["info_hash"])diff --git a/tests/test_dependency_policy.py b/tests/test_dependency_policy.pyindex 8dbee61db..d2ac6e5a3 100644--- a/tests/test_dependency_policy.py+++ b/tests/test_dependency_policy.py@@ -61,6 +61,7 @@ class DependencyPolicyTests(unittest.TestCase):"PIL": "pillow","PyObjCTools": "pyobjc-framework-Cocoa","apscheduler": "APScheduler",+ "bencode2": "bencode2","browserexport": "browserexport","bs4": "beautifulsoup4","curl_cffi": "curl_cffi",diff --git a/tests/test_downloads_resource_search.py b/tests/test_downloads_resource_search.pyindex 1fd35aef9..5d3482007 100644--- a/tests/test_downloads_resource_search.py+++ b/tests/test_downloads_resource_search.py@@ -1,4 +1,5 @@"""索引器搜索用合成 XML、假 HTTP 与临时凭据;不连接真实账号。"""+import hashlibimport jsonimport tempfileimport unittest@@ -8,7 +9,8 @@ from xml.sax.saxutils import escapeimport httpxfrom peach.follow_secrets import CredentialStore-from peach.resource_search import CREDENTIAL, MAX_BYTES, Filters, Indexers, Search, endpoint, qualities+from peach.resource_search import (CREDENTIAL, MAX_BYTES, MAX_TORRENTS, Filters, Indexers, Search, endpoint,+ qualities)HASH = "c9e15763f722f23e98a29decdfae341b98d53056"CAPS = '<caps><limits max="25"/><searching><search available="yes" supportedParams="q"/></searching></caps>'@@ -26,6 +28,19 @@ def item(title="ABC-123 4K HEVC 中字", info_hash=HASH, size=1024 ** 3, seeders'<torznab:attr name="peers" value="7"/></item>')+#: 键按字节序排列的最小种子;infohash 是 info 字典原文的 SHA-1。+INFO = b"d6:lengthi1e4:name7:ABC-123e"+TORRENT = b"d8:announce16:http://t.test/an4:info" + INFO + b"e"+TORRENT_HASH = hashlib.sha1(INFO).hexdigest()+DOWNLOAD = "http://indexer.test/1/download?apikey=private-test-key&link=abc"+++def torrent_item(title="ABC-123 FHD", link=DOWNLOAD, seeders=3):+ """OneJAV 一类条目:没有磁力与 infohash,只有索引器下载代理的种子地址。"""+ return (f'<item><title>{escape(title)}</title><size>{1024 ** 3}</size><link>{link}</link>'+ f'<torznab:attr name="seeders" value="{seeders}"/></item>')++def feed(*items):return '<rss xmlns:torznab="http://torznab.com/schemas/2015/feed"><channel>' + ''.join(items) + '</channel></rss>'@@ -36,6 +51,11 @@ class SearchTests(unittest.TestCase):self.assertTrue(qualities("ABC-123-UC", [], "ABC-123")["uncensored"])self.assertFalse(qualities("ABC-123", [], "ABC-123")["chinese"])+ def test_fhd_and_uhd_labels_count_as_resolutions(self):+ self.assertEqual(qualities("[FHD] ABC-123", [], "ABC-123")["resolution"], 1080)+ self.assertEqual(qualities("ABC-123 UHD", [], "ABC-123")["resolution"], 2160)+ self.assertEqual(qualities("[HD Uncensored] ABC-123", [], "ABC-123")["resolution"], 0)+def search(self, content, *, rows=None, code="ABC-123", filters=None, blocked=()):self.requests = []@@ -65,6 +85,45 @@ class SearchTests(unittest.TestCase):with self.subTest(field=field):self.assertEqual(self.search(feed(item(magnet_field=field)))["items"][0]["id"], HASH)+ def torrent_search(self, *items, torrent=TORRENT, status=200, headers=None):+ def respond(request):+ if request.url.path.startswith("/1/download"):+ return httpx.Response(status, content=torrent, headers=headers)+ return httpx.Response(200, text=CAPS if request.url.params["t"] == "caps" else feed(*items))+ return self.search(respond)++ def test_torrent_only_item_becomes_a_magnet_from_its_info_dictionary(self):+ result = self.torrent_search(torrent_item())+ row = result["items"][0]+ self.assertEqual((row["info_hash"], row["uri"], row["resolution"]),+ (TORRENT_HASH, f"magnet:?xt=urn:btih:{TORRENT_HASH}", 1080))+ self.assertEqual([r.url.path for r in self.requests], ["/api", "/api", "/1/download"])+ self.assertNotIn(ROW["api_key"], json.dumps(result))++ def test_proxy_redirect_to_a_magnet_is_read_from_location(self):+ result = self.torrent_search(torrent_item(), status=301,+ headers={"location": f"magnet:?xt=urn:btih:{HASH}"})+ self.assertEqual(result["items"][0]["id"], HASH)++ def test_torrent_link_off_the_indexer_origin_is_not_requested(self):+ result = self.torrent_search(torrent_item(link="http://tracker.test/1/download/x.torrent"))+ self.assertEqual(result["items"], [])+ self.assertEqual({r.url.host for r in self.requests}, {"indexer.test"})++ def test_unreadable_torrent_drops_only_that_item(self):+ unsorted = b"d4:infod4:name1:a6:lengthi1eee"+ for torrent in (b"<!DOCTYPE html>", unsorted, b"d8:announce1:xe"):+ with self.subTest(torrent=torrent[:16]):+ result = self.torrent_search(torrent_item(), item(), torrent=torrent)+ self.assertTrue(result["ok"])+ self.assertEqual([row["id"] for row in result["items"]], [HASH])+ self.assertEqual(result["warnings"], [])++ def test_torrent_fetches_skip_dead_items_and_stop_at_the_per_indexer_cap(self):+ rows = [torrent_item(), torrent_item(seeders=0)] + [torrent_item() for _ in range(MAX_TORRENTS + 2)]+ self.torrent_search(*rows)+ self.assertEqual(sum(r.url.path.startswith("/1/download") for r in self.requests), MAX_TORRENTS)+def test_utf8_xml_with_bom_is_accepted(self):def respond(request):xml = CAPS if request.url.params["t"] == "caps" else feed(item())diff --git a/uv.lock b/uv.lockindex ef6bbcb53..ecd43f215 100644--- a/uv.lock+++ b/uv.lock@@ -67,6 +67,61 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/88/c6/92fcd42f1ba33e1184263f25bfabf3d27c383410470f169e4b8163bf9c17/beautifulsoup4-4.15.0-py3-none-any.whl", hash = "sha256:d6f88de62e1d4e38ecb1077eb9724cd0eff29d2a08ca16a401e9b9e93f117cf9", size = 109924, upload-time = "2026-06-07T16:44:21.566Z" },]+[[package]]+name = "bencode2"+version = "0.3.35"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "typing-extensions" },+]+wheels = [+ { url = "https://files.pythonhosted.org/packages/58/79/8d25113e1937b175b95efa47f3e88c1f294ada6efe5cd98deb7af62a3a75/bencode2-0.3.35-cp312-abi3-macosx_11_0_arm64.whl", hash = "sha256:b092d19ae5475f41ee88d7190f4dd4b2c62e93adb96e6c3d67184db1ecf2abd4", size = 108034, upload-time = "2026-09-13T16:50:03.376Z" },+ { url = "https://files.pythonhosted.org/packages/a2/9c/03cd72b5626613b2af6b15316662c5b80486684db4c3fd781aa05ab2dca7/bencode2-0.3.35-cp312-abi3-macosx_11_0_x86_64.whl", hash = "sha256:d33ed007946760d128c4839172fadf1c76fc62453ade0b3d44d9c2f688b1d9ab", size = 119088, upload-time = "2026-09-13T16:50:04.476Z" },+ { url = "https://files.pythonhosted.org/packages/74/e3/802499bdc4b0b6701c451e8f4f3c4e2e731ad1bc971c9361b5214b86f17e/bencode2-0.3.35-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_39_aarch64.whl", hash = "sha256:818f1de7e93373d1a5cb0268fbd29cb8733734d0a4af80b2dde36193ea303f70", size = 243801, upload-time = "2026-09-13T16:50:05.481Z" },+ { url = "https://files.pythonhosted.org/packages/be/c8/393834c2eed3912d1037c8edbd4b54a28c68e76c2a7250960ca4767bdae3/bencode2-0.3.35-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_39_x86_64.whl", hash = "sha256:4eea826229eaff900eebef24924fd53bab317afe6f059e1f4079f1436059ffd8", size = 260276, upload-time = "2026-09-13T16:50:06.529Z" },+ { url = "https://files.pythonhosted.org/packages/8f/16/2b3502c94cf617e26a0e3e4d242eda8e4da21ca83d10be37da52136ad53f/bencode2-0.3.35-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:788e48ca3a9761694ee156d28ddba26f633c05199662c884530e0528c0c83c52", size = 110276, upload-time = "2026-09-13T16:50:07.519Z" },+ { url = "https://files.pythonhosted.org/packages/38/85/ebf8051b3f67e6e4b94b9d2e966c9373969e808cfc3bc97de79969a1af11/bencode2-0.3.35-cp312-cp312-macosx_11_0_x86_64.whl", hash = "sha256:f2f86cf92edf1398e90efbb9c23a92862f3c162a5ecf4bbc14c56353c6b1b8ae", size = 120978, upload-time = "2026-09-13T16:50:08.414Z" },+ { url = "https://files.pythonhosted.org/packages/4a/98/0ce19d6a5731fc005e8fc0fee745d560e9d79ad896a618abb81a77ee6d67/bencode2-0.3.35-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_39_aarch64.whl", hash = "sha256:277191b3a4dbec8d91cf0403564935bfc13e0ad8064aa4887af4d1f46376416e", size = 244702, upload-time = "2026-09-13T16:50:09.348Z" },+ { url = "https://files.pythonhosted.org/packages/d2/c4/2bc6139f270da04081b9450502042a29d091188c1db9b77c1d02c382518d/bencode2-0.3.35-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_39_x86_64.whl", hash = "sha256:b90c8f215f0366b1df2da5181763403b19a4a2dd23b96e620089eeb1857c716b", size = 261251, upload-time = "2026-09-13T16:50:10.323Z" },+ { url = "https://files.pythonhosted.org/packages/af/dd/010a9918ea2ca303b6e9c9ca8910f6820b8b21378a28352652a821571f2f/bencode2-0.3.35-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:0b335d5f43981e13a9e96c48559ae0c8915d2e4fe5fe0ba82d33ac08acb074e1", size = 1117776, upload-time = "2026-09-13T16:50:11.342Z" },+ { url = "https://files.pythonhosted.org/packages/a1/8e/16902ba81fd29628e1f2b0155c3f8f96269125dab19ba7410b8ed7a40635/bencode2-0.3.35-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:cf29af2c7fe6ccec0bd7309181f6c6b0a27b5cf0c739b50c0bd28d151e5b7cff", size = 1171490, upload-time = "2026-09-13T16:50:12.749Z" },+ { url = "https://files.pythonhosted.org/packages/6a/f8/c0088755141c18991afdf13bc498b782932f16bd0e89dcdc1c403ac8187b/bencode2-0.3.35-cp312-cp312-win_amd64.whl", hash = "sha256:b820db536cd3e3c860abf19ef5bc5f2ec1de6f37ba28778611eed90811a0820a", size = 313817, upload-time = "2026-09-13T16:50:13.846Z" },+ { url = "https://files.pythonhosted.org/packages/0d/65/bc375aa244a8264db4d4b8f924206eaf7c976f7cd5a6546aeac4b631a557/bencode2-0.3.35-cp312-cp312-win_arm64.whl", hash = "sha256:71bbd2269c562b5976a32fce010aec383154eba6c3799b37de1327fe955a0679", size = 464324, upload-time = "2026-09-13T16:50:14.775Z" },+ { url = "https://files.pythonhosted.org/packages/9a/d9/d9d01913d049d04526266475167e382e5c3629aa12d1adbaad554501cfd2/bencode2-0.3.35-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:491098cafa139f653c82be11ced94c53ee7c60a26640cc39819d66a876097311", size = 110225, upload-time = "2026-09-13T16:50:15.702Z" },+ { url = "https://files.pythonhosted.org/packages/31/82/2f2a373e0ce7973a863808c26a345bec5909eb532902e732a19dd5b04dea/bencode2-0.3.35-cp313-cp313-macosx_11_0_x86_64.whl", hash = "sha256:b7ecb10dbd609dfb80a15a55e67e55988dc4d9193c8c278a98e3daeba0e2bdd3", size = 120891, upload-time = "2026-09-13T16:50:16.612Z" },+ { url = "https://files.pythonhosted.org/packages/6b/38/992bb0a48b33a7b8efd2e83993aa57f8a5d934cf470ff50341f43fdd538b/bencode2-0.3.35-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_39_aarch64.whl", hash = "sha256:45edecb30dfd00335ed4a1bc64f36722d3d887a68542deab295ee37abb958dc0", size = 244658, upload-time = "2026-09-13T16:50:17.524Z" },+ { url = "https://files.pythonhosted.org/packages/e0/31/a9846278bffaaacc27185f066e1bdc031b809611a5fff5784344f8f1e8b2/bencode2-0.3.35-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_39_x86_64.whl", hash = "sha256:ddf646199c76ef9e84cc76d676fa2ccfad4b582a8154c1f214da19085b28877e", size = 261124, upload-time = "2026-09-13T16:50:18.471Z" },+ { url = "https://files.pythonhosted.org/packages/ee/77/cba9585e25d892c363bff8f92c32db3e905fe443788054501e4a0e191efc/bencode2-0.3.35-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:8c023c2df75c9d5208cd3f17c37551a8a150fb92b1c99dbdc2e176c84e848c86", size = 1117960, upload-time = "2026-09-13T16:50:19.484Z" },+ { url = "https://files.pythonhosted.org/packages/d8/c6/ffbaae9d50bd0881a22421754c6ce2ab36015c3bddaf706142015330a1f5/bencode2-0.3.35-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:e0ac04199c2e1d18ab313829e89700a22299e33fc6624644357a2f5e7d98b401", size = 1171184, upload-time = "2026-09-13T16:50:20.75Z" },+ { url = "https://files.pythonhosted.org/packages/99/8e/d0501cde96429fb8e71a16e794f670596ddee1ebcb0e53b8c57a85129be2/bencode2-0.3.35-cp313-cp313-win_amd64.whl", hash = "sha256:fcf71e2d1e47aa01891f6e03ece2bbe5187bafd6aaaa762d56e7cb2b81b3ba86", size = 313777, upload-time = "2026-09-13T16:50:21.878Z" },+ { url = "https://files.pythonhosted.org/packages/d1/e5/b612f9f3c6505cb608a3c3407db685f6945c46a1f4fc99902547089df837/bencode2-0.3.35-cp313-cp313-win_arm64.whl", hash = "sha256:64e86abba6ab9ed167772013f983edf3f343d49dc2665b5aa35b75d92a9fd958", size = 464231, upload-time = "2026-09-13T16:50:22.889Z" },+ { url = "https://files.pythonhosted.org/packages/df/a0/18da4a2d7d6ab3e89ec6af90687d1ef9f940ac3e6a815d4d0b8ded2a767f/bencode2-0.3.35-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:bec8a49ce47cfa631e8cf35fe390472186d72d2b677f8d8be728aa125e141a6c", size = 110257, upload-time = "2026-09-13T16:50:23.901Z" },+ { url = "https://files.pythonhosted.org/packages/82/57/77a2c0aa80a0058a171f03ed310824a7342e3da10a5a167a1e83dcb11e07/bencode2-0.3.35-cp314-cp314-macosx_11_0_x86_64.whl", hash = "sha256:23748967455a3ff9840044b8a255c6ee2ba6e129981a095a119a1a45763fa672", size = 120938, upload-time = "2026-09-13T16:50:24.792Z" },+ { url = "https://files.pythonhosted.org/packages/0b/1a/9381f289b430c8b36aa8ad7702fa0988a4aa183490907e0a18c571335bd4/bencode2-0.3.35-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_39_aarch64.whl", hash = "sha256:897aa50ba9012119df8b79c2d8f18cfa27a2010eb46d957c1ec28289425b890c", size = 244733, upload-time = "2026-09-13T16:50:25.825Z" },+ { url = "https://files.pythonhosted.org/packages/99/a9/b218942cb9b95766836779cda9f94eabb1dfec532d340fe58cb452c38f8f/bencode2-0.3.35-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_39_x86_64.whl", hash = "sha256:98f3c0eec0d003d57135800b3e54b51af850680fbb10252754d464c89f125db7", size = 261128, upload-time = "2026-09-13T16:50:26.929Z" },+ { url = "https://files.pythonhosted.org/packages/8d/a6/055fc7183f64f5eb449d40df3cf436fef22a8bc27b5dd245021b21506849/bencode2-0.3.35-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:6b3fd3c9245710d5f3b436317c53f35bef283da8fef8072ad13fe8d3bbeabde5", size = 1118175, upload-time = "2026-09-13T16:50:28.003Z" },+ { url = "https://files.pythonhosted.org/packages/7e/b3/d1e7f55775b86ae4796052454f3e56b7f65cc863c66cd7dc9e98b6b4ba64/bencode2-0.3.35-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:112f1e1cdd3cc3ce6ddbb22a9589e91ed6661410a5e82b0dddc34fc13720c4aa", size = 1171207, upload-time = "2026-09-13T16:50:29.035Z" },+ { url = "https://files.pythonhosted.org/packages/ef/09/acf2eea816d493d05bb1d697b6af1852fda008cdb3dc7f9772c8b0b4e196/bencode2-0.3.35-cp314-cp314-win_amd64.whl", hash = "sha256:6aea78e6c139c46de04149fdddc45cb876d71b732d1cd36320e6a90474596330", size = 323659, upload-time = "2026-09-13T16:50:30.441Z" },+ { url = "https://files.pythonhosted.org/packages/f9/e1/0f69fc7f7d5b5d790fff5dea4e9ff05e7f8859bcd36e7bb48b5a4c2d9302/bencode2-0.3.35-cp314-cp314-win_arm64.whl", hash = "sha256:08e4f7131069a8e2f0710f579b3392644a8c2ba5ecdd4ee63a9459a00ec120fe", size = 479921, upload-time = "2026-09-13T16:50:31.64Z" },+ { url = "https://files.pythonhosted.org/packages/0b/a7/ecc7f70bbc16c6632fcb16938240f2cbf7cd981f9c406a77dd0a92b86209/bencode2-0.3.35-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:490307b40711a6e89aa8d08bbc75c02139b5937879479415ea232f6481a512bb", size = 110241, upload-time = "2026-09-13T16:50:32.902Z" },+ { url = "https://files.pythonhosted.org/packages/2c/8f/ae2760d7ae0a5648e7b42e3a29094ae8e5cfec733218e521d1e517aba4e9/bencode2-0.3.35-cp314-cp314t-macosx_11_0_x86_64.whl", hash = "sha256:1115c66c7f4a29af9d2ee2fca5c4fe4698ce7e10da98b6d310340eef36970423", size = 120932, upload-time = "2026-09-13T16:50:34.1Z" },+ { url = "https://files.pythonhosted.org/packages/3f/b4/0683a40fb3e5a2e7e408b3a171ccbadf870c92ce563c877320cfc296551c/bencode2-0.3.35-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_39_aarch64.whl", hash = "sha256:df0ad4401cb9f6de5e4b6aa4d717e70b6a01284cc7987d0c9dbcfb49f6326a65", size = 246053, upload-time = "2026-09-13T16:50:35.026Z" },+ { url = "https://files.pythonhosted.org/packages/15/7c/d378741e4501bebda67fa498477d49c738fef6c76ce564696fc487f1d0a4/bencode2-0.3.35-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_39_x86_64.whl", hash = "sha256:570bf278e08f50080a0359aaeb70e0189a92cc9ae207f4449f299b47d2c13563", size = 262282, upload-time = "2026-09-13T16:50:36.014Z" },+ { url = "https://files.pythonhosted.org/packages/6f/ee/2b3e174ee2f24e34649e18f6434bcf378dc3181bad233ce3b2dc7bbfaaf8/bencode2-0.3.35-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:27bc965e89415ca801707fb7c32bbe157805fd94022b3fada05fdb70e5fee44e", size = 1116721, upload-time = "2026-09-13T16:50:37.108Z" },+ { url = "https://files.pythonhosted.org/packages/69/10/a8362d0271c5663c990bed880c2e35f394bf618411061bcc91fe1093af65/bencode2-0.3.35-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:20a91aeca4c0b059d884f3d03001766b59aac387d5a8bc056839dcabdf66b364", size = 1169009, upload-time = "2026-09-13T16:50:38.426Z" },+ { url = "https://files.pythonhosted.org/packages/c4/1d/f81ad94c0fa378efb1b46397050751e76b68c3361d47d4a2e401eda59111/bencode2-0.3.35-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:5174bcc393f261d5fa6b4c44c9cb23b3426eac63241cd8b4e995f3dcb9ea8a4b", size = 110269, upload-time = "2026-09-13T16:50:39.497Z" },+ { url = "https://files.pythonhosted.org/packages/2d/63/344773200623eb93bb6b1e75222585c54f127666d91c8a7627cebf9f864a/bencode2-0.3.35-cp315-cp315-macosx_11_0_x86_64.whl", hash = "sha256:f564ace7807b0c93fceafa8a2cfd75b5f87101fc019a2dc0584c518875efccbe", size = 120942, upload-time = "2026-09-13T16:50:40.394Z" },+ { url = "https://files.pythonhosted.org/packages/82/b6/653d4fc2e3020b66dd6288035f28938bc73a3b0a9d3f31ae27d2282dcba1/bencode2-0.3.35-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:b683c0bb97efa33f6a658e9cbea990a72e7680a33ce6af3c23ed20c7b79f136a", size = 1118188, upload-time = "2026-09-13T16:50:41.377Z" },+ { url = "https://files.pythonhosted.org/packages/d3/93/5ea99262a87921dde9f709a2dbb68b396f0990c43650d01c78b67334b019/bencode2-0.3.35-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:5678281a4b43f3859ad6a0106c61dab615ffd205a02cf29430229e7c3c4188c1", size = 1171214, upload-time = "2026-09-13T16:50:42.743Z" },+ { url = "https://files.pythonhosted.org/packages/4e/4b/8f5171b0aa75a75d0e6806168e6079683474610dfec6e3998765ef8d1a7e/bencode2-0.3.35-cp315-cp315-win_amd64.whl", hash = "sha256:c5bf0468521ae48138d55dd2587b98fc218fe8a537dcd203f78ccb5f7e3d086b", size = 323663, upload-time = "2026-09-13T16:50:43.887Z" },+ { url = "https://files.pythonhosted.org/packages/78/b1/b2f5b0caf9552112c1507799c9eb12b583489b0e398b07e2100ee924cda7/bencode2-0.3.35-cp315-cp315-win_arm64.whl", hash = "sha256:fea778175a0c0af0e2aff7f6664b957059442c1ac4d3aa354c674762daa6a790", size = 479932, upload-time = "2026-09-13T16:50:44.837Z" },+ { url = "https://files.pythonhosted.org/packages/6d/45/db839ee11f3c8ad314b3f8de710644a7b145eba39066c467e4d7ca84bca2/bencode2-0.3.35-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:ab0a9c00f70bd72249a13f3f0c3348f2f8202a0650980126b9eac56c359ef95d", size = 110235, upload-time = "2026-09-13T16:50:45.845Z" },+ { url = "https://files.pythonhosted.org/packages/6c/3d/6521c7fdb3af7cc974bc2cd9be1519fbe4693d98a514ff28bcba70c6ab10/bencode2-0.3.35-cp315-cp315t-macosx_11_0_x86_64.whl", hash = "sha256:bcb8daeb2c2f564aac157af63c387d4bc0959b6252bffc81daa4d6bc13f5d776", size = 120932, upload-time = "2026-09-13T16:50:46.808Z" },+ { url = "https://files.pythonhosted.org/packages/cb/66/c433f7d9eece3708e5a31b33322dca67f36093b662dc2b79c67888648f6a/bencode2-0.3.35-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:eb41730e9108da87487a7facc6df2fb3205c93b31c22f1df34eb8c8ac9caf89a", size = 1116808, upload-time = "2026-09-13T16:50:47.787Z" },+ { url = "https://files.pythonhosted.org/packages/eb/dd/3de676629539b67d0f28b9ec0ba732edca87cea129998ee937fc91c32ccf/bencode2-0.3.35-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:81b698d0474c115d84cbaf8f6cd18365113be092ce5e9289029698fb2e4ea1df", size = 1169170, upload-time = "2026-09-13T16:50:49.019Z" },+ { url = "https://files.pythonhosted.org/packages/f5/a7/23f0572f83cfc8ab900a6bffeea50dc2fc15a126943a9ddc6396c6488bd8/bencode2-0.3.35-py3-none-any.whl", hash = "sha256:ab001df23de4cf44394b60d4257356677ea6edf910a02c707d9bd54d697c63d2", size = 8108, upload-time = "2026-09-13T16:50:50.082Z" },+]+[[package]]name = "bitarray"version = "3.11.0"@@ -1165,6 +1220,7 @@ source = { editable = "." }dependencies = [{ name = "apscheduler" },{ name = "beautifulsoup4" },+ { name = "bencode2" },{ name = "browserexport" },{ name = "curl-cffi" },{ name = "fastapi" },@@ -1215,6 +1271,7 @@ vision = [requires-dist = [{ name = "apscheduler", specifier = "==3.11.3" },{ name = "beautifulsoup4", specifier = "==4.15.0" },+ { name = "bencode2", specifier = "==0.3.35" },{ name = "browserexport", specifier = "==0.4.4" },{ name = "curl-cffi", specifier = "==0.16.3" },{ name = "fastapi", specifier = "==0.141.1" },