feat: add RSS feed generator for hitomi.la Japanese index page

This commit is contained in:
armonica committed 2026-09-04 02:26:43 +09:00
1 parent 1b6051f2e1
commit 6b3c67f361
2 files changed
+17 -1

No files matched your search

@@ -197,8 +197,12 @@ internal class index_japanese
}
if (!string.IsNullOrEmpty(imgSrc))
{
// hitomi.laの画像サーバー(gold-usergeneratedcontent.net等)はRefererヘッダーが必須のため、
// 自前の画像プロキシ(udukipc-web)を経由してReferer: https://hitomi.la/ を付与して取得させる
string proxiedImgSrc = $"https://udukipc-web.armonica-vps.work/api/proxy-image?url={Uri.EscapeDataString(imgSrc)}&referer={Uri.EscapeDataString("https://hitomi.la/")}";
body.Append($"<div>");
body.Append($"<img src=\"{imgSrc}\" referrerpolicy=\"no-referrer\" style=\"max-width: 100%; height: auto;\" />");
body.Append($"<img src=\"{proxiedImgSrc}\" referrerpolicy=\"no-referrer\" style=\"max-width: 100%; height: auto;\" />");
body.Append($"</div>");
}