Skip to content

armgit / peach

Public Imported from GitHub
0

Peach: Local-first video metadata scraper and media manager.

fix follow detail links and discovery

longmeidaof09e7aa84529
diff --git a/src/peach/api.py b/src/peach/api.py
index ac8af9b03..5b3586591 100644
--- a/src/peach/api.py
+++ b/src/peach/api.py
@@ -755,6 +755,7 @@ def create_app(
@app.api_route("/quality-goals", methods=["GET", "HEAD"])
@app.api_route("/follow", methods=["GET", "HEAD"])
@app.api_route("/follow-manage", methods=["GET", "HEAD"])
+ @app.api_route("/follow/item/{item_id}", methods=["GET", "HEAD"])
def client_route(request: Request, item_id: int | None = None,
seed_id: int | None = None, mix_item_id: int | None = None,
playlist_id: int | None = None, playlist_item_id: int | None = None,
diff --git a/src/peach/follow_avatar.py b/src/peach/follow_avatar.py
index c9da4f2ce..924b9d6bc 100644
--- a/src/peach/follow_avatar.py
+++ b/src/peach/follow_avatar.py
@@ -4,6 +4,7 @@ from __future__ import annotations
import json
import re
import urllib.parse
+from dataclasses import dataclass
from bs4 import BeautifulSoup
@@ -16,14 +17,23 @@ _USER_ID_RE = re.compile(r"^\d{1,20}$")
_CREATOR_ID_RE = re.compile(r"^[a-zA-Z0-9_-]{1,80}$")
-def resolve_official_avatar(service: str, user_id: str, *,
- transport: HttpTransport | None = None) -> str:
- """Return a fixed-host official avatar URL for one supported creator service.
+@dataclass(frozen=True)
+class OfficialProfile:
+ user_id: str
+ creator_id: str
+ name: str
+ url: str
+ avatar_url: str
+
+
+def resolve_official_profile(service: str, user_id: str, *,
+ transport: HttpTransport | None = None) -> OfficialProfile:
+ """Return the verified official profile behind one archive identity.
FANBOX archive sources expose the Pixiv numeric user id. The official creator
page maps it to the public creator id; ``creator.get`` then returns the current
- ``user.iconUrl``. Both requests and the returned image host are fixed here so a
- client cannot turn this endpoint into an SSRF or open redirect.
+ name and ``user.iconUrl``. Hosts and returned identity are fixed here so a client
+ cannot turn discovery or the avatar endpoint into an SSRF/open redirect.
"""
if service != "fanbox" or not _USER_ID_RE.fullmatch(str(user_id or "")):
raise FollowSourceError("不支持这个官方头像来源")
@@ -70,10 +80,22 @@ def resolve_official_avatar(service: str, user_id: str, *,
user = body.get("user") or {}
avatar = str(user.get("iconUrl") or "")
returned_user_id = str(user.get("userId") or "")
+ name = str(user.get("name") or creator_id).strip()
except (UnicodeDecodeError, TypeError, ValueError, json.JSONDecodeError) as error:
raise FollowSourceError("FANBOX 官方资料格式不符") from error
parsed = urllib.parse.urlsplit(avatar)
if (returned_user_id != user_id or parsed.scheme != "https"
or parsed.hostname != "pixiv.pximg.net"):
raise FollowSourceError("FANBOX 官方资料没有可信的头像地址")
- return avatar
+ return OfficialProfile(
+ user_id=user_id, creator_id=creator_id, name=name,
+ url=creator_origin + "/", avatar_url=avatar,
+ )
+
+
+def resolve_official_avatar(service: str, user_id: str, *,
+ transport: HttpTransport | None = None) -> str:
+ """Return a fixed-host official avatar URL for one supported creator service."""
+ return resolve_official_profile(
+ service, user_id, transport=transport,
+ ).avatar_url
diff --git a/src/peach/follow_discovery.py b/src/peach/follow_discovery.py
index 0b2d853bb..0c66a9cb3 100644
--- a/src/peach/follow_discovery.py
+++ b/src/peach/follow_discovery.py
@@ -16,6 +16,7 @@ from dataclasses import dataclass, field
from pathlib import Path
from .follow import FollowSourceError
+from .follow_avatar import resolve_official_profile
from .follow_secrets import Credential, CredentialError, CredentialStore
from .follow_sources import (
DEFAULT_MAX_ITEMS, USER_AGENT, F95ZoneConnector, KemonoConnector,
@@ -148,6 +149,25 @@ def _kemono_candidates(provider: str, term: str, index: CreatorIndex) -> list[Ca
return picked
+def _fanbox_candidates(archive_candidates: list[Candidate], transport) -> list[Candidate]:
+ """Resolve verified FANBOX archive identities to their official creator pages."""
+ user_ids = []
+ for candidate in archive_candidates:
+ service, separator, user_id = candidate.ref.partition("/")
+ if (candidate.provider in KemonoConnector.HOSTS and separator
+ and service == "fanbox" and user_id.isdigit()
+ and user_id not in user_ids):
+ user_ids.append(user_id)
+ candidates = []
+ for user_id in user_ids[:MAX_CANDIDATES_PER_SOURCE]:
+ profile = resolve_official_profile("fanbox", user_id, transport=transport)
+ candidates.append(Candidate(
+ "fanbox", profile.creator_id, profile.url,
+ profile.name, "work", "FANBOX 官方资料与归档身份一致",
+ ))
+ return candidates
+
+
def _rule34video_candidates(term: str, transport) -> list[Candidate]:
slug = re.sub(r"[^a-z0-9]+", "", term.casefold())
if not slug:
@@ -254,7 +274,7 @@ def discover(term: str, *, secrets_root: Path, state_root: Path,
credentials = CredentialStore(secrets_root)
index = CreatorIndex(state_root, transport=transport)
- wanted = providers or ("kemono", "coomer", "pawchive", "rule34video",
+ wanted = providers or ("kemono", "coomer", "pawchive", "fanbox", "rule34video",
"rule34xxx", "f95zone")
found: list[Candidate] = []
failures: dict[str, str] = {}
@@ -270,6 +290,7 @@ def discover(term: str, *, secrets_root: Path, state_root: Path,
for provider in ("kemono", "coomer", "pawchive"):
run(provider, lambda provider=provider: _kemono_candidates(provider, text, index))
+ run("fanbox", lambda: _fanbox_candidates(found, transport))
if not _NUMERIC_RE.match(text):
run("rule34video", lambda: _rule34video_candidates(text, transport))
run("rule34xxx",
diff --git a/src/peach/web_follow.py b/src/peach/web_follow.py
index 4f5d6fd90..c091b9374 100644
--- a/src/peach/web_follow.py
+++ b/src/peach/web_follow.py
@@ -16,7 +16,7 @@ from .follow_discovery import discover
from .follow_secrets import CredentialError, CredentialStore
from .follow_sources import (
CONNECTORS, KemonoConnector, build_connector, canonical_source_ref,
- parse_source_url,
+ parse_source_url, resource_links,
)
from .follow_store import FollowStore, ReleaseGroup
from .taste_history import read_creator_candidates
@@ -139,6 +139,11 @@ def _excluded_item(item) -> bool:
def _item_payload(item) -> dict:
tags = _item_tags(item)
media_kind = _media_kind(item)
+ recorded_links = item.metadata.get("links")
+ safe_resource_urls = resource_links(
+ "\n".join(str(value) for value in recorded_links)
+ if isinstance(recorded_links, list) else ""
+ )
return {
"id": item.id,
"provider": item.provider,
@@ -165,6 +170,8 @@ def _item_payload(item) -> dict:
"media_kind": media_kind,
"playable": bool(item.media_url) and media_kind in {"video", "image"}
and not bool(item.metadata.get("media_needs_credential")),
+ # 只投影连接器已验证过的文件页域名;原始媒体 URL 仍不进入 feed。
+ "resource_urls": safe_resource_urls,
"tags": tags,
"tag_types": _item_tag_types(item, tags),
}
diff --git a/tests/test_fastapi_api.py b/tests/test_fastapi_api.py
index ea14979ef..cb2ee8ba0 100644
--- a/tests/test_fastapi_api.py
+++ b/tests/test_fastapi_api.py
@@ -546,7 +546,8 @@ class FastApiContractTests(unittest.IsolatedAsyncioTestCase):
# 漏登记时源码断言照样全绿,只有真的请求一次才会露出 404。
"/unseen", "/watch-later", "/flagged",
"/duplicates", "/quality-goals", "/mix/1/2", "/playlists",
- "/playlists/1/1"):
+ "/playlists/1/1", "/follow", "/follow-manage",
+ "/follow/item/190"):
response = await self.client.get(path)
self.assertEqual(response.status_code, 200, path)
self.assertIn("Peach test", response.text)
diff --git a/tests/test_follow_avatar.py b/tests/test_follow_avatar.py
index e05de9919..9481e4b57 100644
--- a/tests/test_follow_avatar.py
+++ b/tests/test_follow_avatar.py
@@ -2,7 +2,7 @@ import json
import unittest
from peach.follow import FollowSourceError
-from peach.follow_avatar import resolve_official_avatar
+from peach.follow_avatar import resolve_official_avatar, resolve_official_profile
from peach.http import HttpResponse
@@ -26,7 +26,7 @@ class OfficialAvatarTests(unittest.TestCase):
+ "'></html>"
).encode()
api = json.dumps({"body": {"user": {
- "userId": user_id, "iconUrl": icon,
+ "userId": user_id, "name": "LazyProcrastinator", "iconUrl": icon,
}}}).encode()
return [HttpResponse(200, {"content-type": "text/html"}, page),
HttpResponse(200, {"content-type": "application/json"}, api)]
@@ -41,6 +41,13 @@ class OfficialAvatarTests(unittest.TestCase):
self.assertEqual(transport.requests[1].headers["Origin"],
"https://lazyprocrast.fanbox.cc")
+ def test_the_same_verified_lookup_returns_the_official_profile(self):
+ profile = resolve_official_profile(
+ "fanbox", "30917150", transport=_Transport(self._responses()))
+ self.assertEqual(profile.creator_id, "lazyprocrast")
+ self.assertEqual(profile.name, "LazyProcrastinator")
+ self.assertEqual(profile.url, "https://lazyprocrast.fanbox.cc/")
+
def test_the_official_api_must_return_the_requested_user(self):
with self.assertRaises(FollowSourceError):
resolve_official_avatar(
diff --git a/tests/test_follow_discovery.py b/tests/test_follow_discovery.py
index e1e9e7d59..7ba74ece8 100644
--- a/tests/test_follow_discovery.py
+++ b/tests/test_follow_discovery.py
@@ -23,6 +23,14 @@ F95_HIT = json.dumps({"status": "ok", "msg": {"data": [
{"thread_id": 50685, "title": "Lazy Procrastinator Collection",
"version": "2026-06-28"}]}}).encode()
F95_MISS = json.dumps({"status": "ok", "msg": {"data": []}}).encode()
+FANBOX_PROFILE = ("<html><meta name='metadata' content='"
+ + json.dumps({"urlContext": {"host": {"creatorId": "lazyprocrast"}}})
+ .replace("'", "&#39;")
+ + "'></html>").encode()
+FANBOX_CREATOR = json.dumps({"body": {"user": {
+ "userId": "30917150", "name": "LazyProcrastinator",
+ "iconUrl": "https://pixiv.pximg.net/icon.jpeg",
+}}}).encode()
def _router(routes, calls=None):
@@ -97,6 +105,8 @@ class CreatorIndexTests(_DiscoveryCase):
class DiscoverTests(_DiscoveryCase):
ROUTES = {
"/api/v1/creators": HttpResponse(200, {}, CREATORS),
+ "/fanbox/creator/30917150": HttpResponse(200, {}, FANBOX_PROFILE),
+ "creator.get?creatorId=lazyprocrast": HttpResponse(200, {}, FANBOX_CREATOR),
"rule34video.com/models/lazyprocrastinator/": HttpResponse(200, {}, b"<html/>"),
"cat=animations": HttpResponse(200, {}, F95_HIT),
"latest_data.php": HttpResponse(200, {}, F95_MISS),
@@ -117,6 +127,15 @@ class DiscoverTests(_DiscoveryCase):
kemono = next(c for c in found.candidates if c.provider == "kemono")
self.assertEqual(kemono.evidence, "创作者名精确匹配")
+ def test_archive_identity_resolves_to_the_official_fanbox_page(self):
+ found = self._discover("LazyProcrastinator", self.ROUTES,
+ providers=("kemono", "fanbox"))
+ official = next(c for c in found.candidates if c.provider == "fanbox")
+ self.assertEqual(official.ref, "lazyprocrast")
+ self.assertEqual(official.url, "https://lazyprocrast.fanbox.cc/")
+ self.assertEqual(official.label, "LazyProcrastinator")
+ self.assertIn("官方资料", official.evidence)
+
def test_a_numeric_term_matches_the_site_id_and_skips_name_only_sources(self):
calls = []
found = self._discover("30917150", self.ROUTES, calls=calls)
diff --git a/tests/test_follow_web.py b/tests/test_follow_web.py
index 6cacd9fdf..f0129bfec 100644
--- a/tests/test_follow_web.py
+++ b/tests/test_follow_web.py
@@ -174,6 +174,22 @@ class FollowContractTests(unittest.TestCase):
self.assertNotIn("media_url", payload)
self.assertIn('"has_media"', payload)
+ def test_external_file_pages_are_exposed_without_leaking_raw_media_urls(self):
+ self._seed(candidates=(FollowCandidate(
+ provider="f95zone", external_id="21435166", title="InitialA Collection",
+ url="https://f95zone.to/threads/160190/post-21435166",
+ media_url="https://gofile.io/d/verified",
+ extra={"links": ["https://gofile.io/d/verified",
+ "https://pixeldrain.com/l/also-verified",
+ "https://gofile.io.evil.example/no"]},
+ ),), provider="f95zone", ref="160190", semantics="release")
+ item = self._get()["groups"][0]["primary"]
+ self.assertEqual(item["resource_urls"], [
+ "https://gofile.io/d/verified",
+ "https://pixeldrain.com/l/also-verified",
+ ])
+ self.assertNotIn("media_url", item)
+
def test_old_archive_images_get_a_thumbnail_without_rewriting_the_ledger(self):
self._seed(candidates=(FollowCandidate(
provider="kemono", external_id="1", title="Image release",
@@ -964,7 +980,7 @@ class FollowWebSourceTests(unittest.TestCase):
def test_already_followed_candidates_are_shown_but_not_selectable(self):
# 灰掉但仍显示,免得人以为没查到。
self.assertPageContains("c.known?' known':''")
- self.assertPageContains("'已经在追'")
+ self.assertPageContains("'已经关注'")
def test_the_first_name_lookup_warns_about_the_index_download(self):
self.assertPageContains("首次按名字查要下载创作者索引,可能几十秒")
@@ -1180,7 +1196,7 @@ class FollowWebSourceTests(unittest.TestCase):
self.assertPageContains('title="打开来源页面" aria-label="打开来源页面"')
self.assertNotIn('打开来源页面</a>', self.page)
self.assertPageContains(".followdetailtitle{display:flex;gap:5px")
- self.assertPageContains(".fnote.followmedianote{margin:18px 0 14px}")
+ self.assertPageContains(".fnote.followmedianote{margin:18px 0 8px}")
self.assertPageContains("followAuthorAvatar(authorSources)")
self.assertPageContains("followTagChip(item,tag,'button')")
self.assertPageContains(".followdetailtags .tg{max-width:none")
@@ -1416,7 +1432,22 @@ class FollowWebSourceTests(unittest.TestCase):
def test_credential_dependent_media_is_called_out(self):
self.assertPageContains("媒体链接需要 F95 登录会话解析")
- self.assertPageContains("已取得外部文件页;视频列表未取得")
+ self.assertPageContains("个外部文件页;视频列表未取得")
+ self.assertPageContains("function followResourceLinks(item)")
+ self.assertPageContains('class="followresources"')
+ self.assertPageContains("${followResourceLinks(item)}")
+
+ def test_follow_external_links_have_a_real_icon_and_no_underlines(self):
+ self.assertPageContains('<symbol id="i-external-link"')
+ self.assertPageContains("icon('external-link')")
+ self.assertPageContains(".followresources a:hover")
+ self.assertPageContains("text-decoration:none")
+
+ def test_follow_check_icons_spin_and_known_copy_says_followed(self):
+ self.assertPageContains("@keyframes follow-spin")
+ self.assertPageContains(".follow .fcheck.busy svg,.frowicon.busy svg")
+ self.assertPageContains("c.known?'已经关注':c.evidence")
+ self.assertPageLacks("已经在追")
def test_follow_styles_exist_for_the_card_surface(self):
for selector in (".followlist{", ".followitem{", ".fbadge{", ".followqueue"):
diff --git a/web/app.css b/web/app.css
index 40b1c6849..ec4908a58 100644
--- a/web/app.css
+++ b/web/app.css
@@ -1185,6 +1185,8 @@ body.drawer-open .edge{opacity:0;pointer-events:none} /* 展开时窄栏让位
.follow .fcheck{height:40px;padding:0 16px;border:1px solid var(--tungsten);border-radius:var(--pill-radius);
display:inline-flex;align-items:center;gap:6px;background:var(--tungsten);color:#fff;font-weight:600;cursor:pointer}
.follow .fcheck svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2}
+.follow .fcheck.busy svg,.frowicon.busy svg{animation:follow-spin .8s linear infinite}
+@keyframes follow-spin{to{transform:rotate(360deg)}}
.followauthors{padding:3px 0 10px;margin:0 0 2px;overscroll-behavior-inline:contain}
.followauthors .av{width:76px}
.followauthors .av[aria-pressed="true"] .ring{box-shadow:0 0 0 2px var(--tungsten)}
@@ -1252,7 +1254,7 @@ body.drawer-open .edge{opacity:0;pointer-events:none} /* 展开时窄栏让位
.followdetailtitle{display:flex;gap:5px;align-items:flex-start;margin-bottom:8px}.followdetailtitle .stitle{width:auto;max-width:calc(100% - 35px);margin:0}.followdetailtitle .followorigin{flex:none;width:30px;height:30px;margin:0;display:grid;place-items:center;border-radius:7px}.followdetailtitle .followorigin:hover{background:var(--hover)}
.followdetailidentity{display:flex;align-items:center;gap:10px;margin:2px 0 12px}.followdetailidentity .mav{flex:none}.followdetailidentity b,.followdetailidentity span{display:block}.followdetailidentity>div>span{margin-top:3px;color:var(--muted);font-size:var(--fs-xs)}
.followdetailsummary{margin:0 0 16px;line-height:1.6;color:var(--ink-2);white-space:pre-line}.followdetailtags .tg{max-width:none;overflow:visible;text-overflow:clip;white-space:normal;text-align:left;color:var(--ink-2);font-family:inherit}.followqueue .mixitempic>.fnothumb{position:static;width:100%;height:100%}
-.fnote.followmedianote{margin:18px 0 14px}.followdetailactions{margin-top:2px}.followdetailactions button:disabled{opacity:.45;cursor:default}.followorigin{display:inline-flex;align-items:center;gap:7px;width:max-content;margin-top:auto;color:var(--muted);text-decoration:none}.followorigin svg{width:16px;height:16px;stroke:currentColor;fill:none}.followorigin:hover{color:var(--ink);text-decoration:none}
+.fnote.followmedianote{margin:18px 0 8px}.followresources{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}.followresources a{display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 11px;border:1px solid var(--border-15);border-radius:7px;color:var(--ink-2);text-decoration:none}.followresources a:hover{border-color:var(--tungsten);color:var(--ink);text-decoration:none}.followresources svg{width:15px;height:15px;stroke:currentColor;fill:none}.followdetailactions{margin-top:2px}.followdetailactions button:disabled{opacity:.45;cursor:default}.followorigin{display:inline-flex;align-items:center;gap:7px;width:max-content;margin-top:auto;color:var(--muted);text-decoration:none}.followorigin svg{width:16px;height:16px;stroke:currentColor;fill:none}.followorigin:hover{color:var(--ink);text-decoration:none}
@media (max-width:640px){.followhead{align-items:center}.follow .fcheck{height:36px;padding:0 13px}
.followauthors{margin-right:-12px;padding-top:3px}.followfilters{margin-right:-12px;padding-right:12px}
}
@@ -1385,7 +1387,6 @@ body.drawer-open .edge{opacity:0;pointer-events:none} /* 展开时窄栏让位
.frowicon:disabled{cursor:not-allowed;opacity:.42;color:var(--muted);border-color:var(--border-15)}
.frowicon.danger:hover{color:var(--drop);border-color:var(--drop)}
.frowicon svg{width:16px;height:16px;stroke:currentColor;fill:none}
-.frowicon.busy svg{animation:spin .8s linear infinite}
.fsource.frow>.frowerr{grid-column:1/-1}
.favatar{width:28px;height:28px;flex:none;border-radius:var(--pill-radius);object-fit:cover;
background:var(--overlay-5);outline:1px solid oklch(1 0 0 / 0.1);outline-offset:-1px}
diff --git a/web/app.js b/web/app.js
index 8bbbe516b..a4ab3fd67 100644
--- a/web/app.js
+++ b/web/app.js
@@ -1335,11 +1335,28 @@ function followVideoItems(group){
function followMediaNote(item){
if(item.media_needs_credential)return '媒体链接需要 F95 登录会话解析';
- if(item.has_media&&!item.playable&&item.media_kind==='external')
- return '已取得外部文件页;视频列表未取得';
+ if(item.has_media&&!item.playable&&item.media_kind==='external')return item.resource_urls?.length
+ ?`已取得 ${item.resource_urls.length} 个外部文件页;视频列表未取得`
+ :'外部文件页未取得;视频列表未取得';
return '';
}
+function followResourceLabel(url){
+ try{
+ const host=new URL(url).hostname.replace(/^www\./,'');
+ return ({'gofile.io':'Gofile','pixeldrain.com':'Pixeldrain','mega.nz':'MEGA',
+ 'mega.io':'MEGA','mediafire.com':'MediaFire','drive.google.com':'Google Drive'})[host]||host;
+ }catch{return '外部文件页'}
+}
+
+function followResourceLinks(item){
+ const links=item.resource_urls||[];
+ if(!links.length)return '';
+ return `<div class="followresources">${links.map(url=>
+ `<a href="${esc(url)}" target="_blank" rel="noreferrer noopener">${esc(followResourceLabel(url))}${icon('external-link')}</a>`
+ ).join('')}</div>`;
+}
+
/* 集合弹层沿用原来的动态语义:线程标题不能冒充每条回复的正文,
行首则说明它与主条目的关系。 */
function followCollectionCopy(group,item,mark=''){
@@ -1418,6 +1435,7 @@ async function openFollowDetail(id,push=true){
${item.summary?`<p class="followdetailsummary">${esc(item.summary)}</p>`:''}
${tags?`<div class="stags followdetailtags">${tags}</div>`:''}
${followMediaNote(item)?`<p class="fnote followmedianote">${esc(followMediaNote(item))}</p>`:''}
+ ${followResourceLinks(item)}
<div class="fb followdetailactions">
<button class="later" data-follow-detail-save aria-label="${item.status==='saved'?'已保存':'保存到账本'}" title="${item.status==='saved'?'已保存':'保存到账本'}"${item.status==='saved'?' disabled':''}>${item.status==='saved'?icon('check'):icon('bookmark-plus')}</button>
<button class="seen" data-follow-detail-status="seen" aria-label="标记已看" title="标记已看" aria-pressed="${item.status==='seen'}">${icon('eye')}</button>
@@ -2146,7 +2164,7 @@ function wireFollowManage(){
}
/* 查找结果先摆出来由人勾选,不自动登记:发现要联网,结果也可能不止一个,
- 替用户决定「就是这个」是错的。已经在追的项灰掉但仍显示,免得人以为没查到。 */
+ 替用户决定「就是这个」是错的。已经关注的项灰掉但仍显示,免得人以为没查到。 */
function renderFollowPicks(results){
const box=$('#followPicks');
if(!box)return;
@@ -2160,7 +2178,7 @@ function renderFollowPicks(results){
data-author="${esc(c.author||'')}"
data-label="${esc(c.label)}"${c.known?' disabled':' checked'}>
<span><b>${esc(c.provider_label)}</b> ${esc(c.label)}
- <i>${esc(c.known?'已经在追':c.evidence)}</i></span></label>`).join('');
+ <i>${esc(c.known?'已经关注':c.evidence)}</i></span></label>`).join('');
const searches=(row.external_searches||[]).map(search=>
`<a class="fpicksearch" href="${esc(search.url)}" target="_blank" rel="noreferrer noopener">
<b>${esc(search.label)}</b><span>${esc(search.query)}</span>
diff --git a/web/index.html b/web/index.html
index a8cf0d9cf..f62c9c5e7 100644
--- a/web/index.html
+++ b/web/index.html
@@ -53,6 +53,7 @@
<symbol id="i-heart" viewBox="0 0 24 24"><path d="M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5"/></symbol>
<symbol id="i-play" viewBox="0 0 24 24"><path d="M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z"/></symbol>
<symbol id="i-clock" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"/><path d="M12 6v6l4 2"/></symbol>
+ <symbol id="i-external-link" viewBox="0 0 24 24"><path d="M15 3h6v6"/><path d="M10 14 21 3"/><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/></symbol>
<symbol id="i-bookmark-plus" viewBox="0 0 24 24"><path d="M12 7v6"/><path d="M15 10H9"/><path d="M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z"/></symbol>
<symbol id="i-sperm" viewBox="0 0 24 24"><path d="M18.2574 3.04039C16.6079 3.3153 15.3153 4.60785 15.0404 6.25731C14.9261 6.94343 15.1179 7.59015 15.5007 8.08229L15.1947 8.49031C14.8361 8.96852 14.2732 9.24995 13.6754 9.24995H12.8524C10.9372 9.24995 9.58486 11.1262 10.1905 12.9431L10.3037 13.2827C10.5666 14.0715 9.88821 14.8537 9.07014 14.705C7.36157 14.3943 5.83623 15.8176 6.02801 17.5435L6.05171 17.7569C6.12353 18.4033 5.68919 18.9973 5.05144 19.1248L4.35291 19.2645C3.94674 19.3458 3.68333 19.7409 3.76456 20.147C3.8458 20.5532 4.24092 20.8166 4.64709 20.7354L5.34562 20.5957C6.74631 20.3155 7.70028 19.0109 7.54253 17.5912L7.51883 17.3779C7.43795 16.65 8.08124 16.0497 8.80181 16.1808C10.7416 16.5334 12.3502 14.6787 11.7267 12.8083L11.6135 12.4688C11.3317 11.6232 11.9611 10.75 12.8524 10.75H13.6754C14.7453 10.75 15.7528 10.2462 16.3947 9.39031L16.7517 8.9143C17.0623 8.99708 17.3975 9.01704 17.7426 8.95951C19.3921 8.6846 20.6847 7.39205 20.9596 5.7426C21.2244 4.15334 19.8466 2.77552 18.2574 3.04039Z" fill="currentColor"/><path d="M11.0548 3.32416C10.1507 3.47484 9.41308 4.15197 9.17192 5.03625C9.06125 5.44203 9.13468 5.83765 9.32677 6.15771L8.8594 6.85877C8.69647 7.10316 8.42219 7.24995 8.12847 7.24995H7.75C6.64543 7.24995 5.75 8.14538 5.75 9.24995C5.75 9.52609 5.52614 9.74995 5.25 9.74995C4.14543 9.74995 3.25 10.6454 3.25 11.75V12C3.25 12.4142 3.58579 12.75 4 12.75C4.41421 12.75 4.75 12.4142 4.75 12V11.75C4.75 11.4738 4.97386 11.25 5.25 11.25C6.35457 11.25 7.25 10.3545 7.25 9.24995C7.25 8.97381 7.47386 8.74995 7.75 8.74995H8.12847C8.92372 8.74995 9.66635 8.35251 10.1075 7.69082L10.6492 6.87823C10.7526 6.87326 10.8578 6.85692 10.9637 6.82804C11.848 6.58687 12.5251 5.84929 12.6758 4.94518C12.8347 3.9918 12.0081 3.16526 11.0548 3.32416Z" fill="currentColor"/><path d="M18.1471 11.3088C17.2045 11.4659 16.4659 12.2045 16.3088 13.147C16.2724 13.3658 16.2904 13.5775 16.3514 13.7709L15.0321 15.31C14.7928 15.5892 14.4434 15.75 14.0756 15.75C13.1529 15.75 12.2912 16.2111 11.7793 16.9789L11.7373 17.0419C11.4196 17.5185 11.25 18.0785 11.25 18.6513V19C11.25 19.4142 11.5858 19.75 12 19.75C12.4142 19.75 12.75 19.4142 12.75 19V18.6513C12.75 18.3747 12.8319 18.1042 12.9854 17.874L13.0274 17.8109C13.261 17.4605 13.6544 17.25 14.0756 17.25C14.8813 17.25 15.6467 16.8979 16.171 16.2862L17.5255 14.706C17.6318 14.7141 17.7415 14.7097 17.8529 14.6911C18.7955 14.534 19.5341 13.7954 19.6912 12.8529C19.8425 11.9447 19.0552 11.1574 18.1471 11.3088Z" fill="currentColor"/></symbol>
</svg>