feat: Senzuri/TXXX/FC2動画のプレイヤーテーマ追加および外部再生ボタンのUI改善

This commit is contained in:
armonica committed 2026-09-09 18:24:18 +09:00
1 parent a3beded392
commit 3a57902569
1 file changed
+42 -4
+42 -4
View File
@@ -1874,6 +1874,40 @@ public static class HtmlRenderer
playerUrl ??= $"https://spankbang.com/{safeId}/embed/";
break;
case "senzuri":
case "senzuri.tube":
siteDisplayName = "Senzuri";
badgeText = "SENZURI TUBE";
accentGradient = "linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%)";
accentPrimary = "#8b5cf6";
glowColor = "rgba(139, 92, 246, 0.3)";
defaultOrigUrl = originalUrl ?? $"https://senzuri.tube/videos/{safeId}/";
break;
case "txxx":
case "txxx.com":
case "hclips":
case "hclips.com":
siteDisplayName = "TXXX";
badgeText = "TXXX VIDEO";
accentGradient = "linear-gradient(135deg, #ef4444 0%, #f97316 100%)";
accentPrimary = "#ef4444";
glowColor = "rgba(239, 68, 68, 0.3)";
defaultOrigUrl = originalUrl ?? $"https://www.txxx.com/videos/{safeId}/";
playerUrl ??= $"https://www.txxx.com/embed/{safeId}/";
break;
case "fc2":
case "fc2video":
siteDisplayName = "FC2動画";
badgeText = "FC2 VIDEO";
accentGradient = "linear-gradient(135deg, #10b981 0%, #059669 100%)";
accentPrimary = "#10b981";
glowColor = "rgba(16, 185, 129, 0.3)";
defaultOrigUrl = originalUrl ?? $"https://adult.contents.fc2.com/article/{safeId}/";
break;
default:
siteDisplayName = !string.IsNullOrWhiteSpace(site) ? site.ToUpperInvariant() : "動画プレイヤー";
badgeText = "WEB VIDEO";
@@ -2189,10 +2223,14 @@ public static class HtmlRenderer
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share; fullscreen">
</iframe>
""" : $$"""
<div style="text-align: center; padding: 20px; color: var(--text-muted);">
<p style="font-size: 1.1rem; margin-bottom: 12px; color: #fff;">動画ソースの直接読み込み情報を取得中、または外部提供元での再生が必要です。</p>
<a href="{{safeOriginalUrl}}" target="_blank" rel="noopener noreferrer" class="btn-action" style="background: var(--accent-gradient); color: #fff;">
<span>{{siteDisplayName}} 公式ページで開く ↗</span>
<div style="text-align: center; padding: 40px 20px; color: var(--text-muted); display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 280px;">
<div style="font-size: 3rem; margin-bottom: 14px;">🎬</div>
<h3 style="font-size: 1.25rem; margin-bottom: 8px; color: #fff; font-weight: 700;">{{siteDisplayName}} で動画を視聴する</h3>
<p style="font-size: 0.92rem; margin-bottom: 20px; color: var(--text-muted); max-width: 480px; line-height: 1.6;">
この動画は配信元({{siteDisplayName}})にて安全に提供されています。<br>外部プレイヤー公式ページにて本編をご視聴いただけます。
</p>
<a href="{{safeOriginalUrl}}" target="_blank" rel="noopener noreferrer" class="btn-action" style="background: var(--accent-gradient); color: #fff; font-size: 1.05rem; padding: 12px 28px; box-shadow: 0 4px 20px var(--accent-glow);">
<span>▶ {{siteDisplayName}} で動画を再生する ↗</span>
</a>
</div>
"""))}}