Add like count to videos

Same pattern as view_count: model column, yt-dlp extraction, SQL select,
VideoDetail field, startup migration, and display in Watch meta row.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Mattias Tall
2026-05-26 11:25:44 +02:00
parent ffd46b5e08
commit 3f225e7647
5 changed files with 6 additions and 1 deletions

View File

@@ -894,6 +894,7 @@ export default function Watch() {
<div className="flex items-center gap-2 text-sm text-zinc-500 flex-wrap">
{date && <span>{date}</span>}
{video?.view_count > 0 && <><span>·</span><span>{formatViews(video.view_count)}</span></>}
{video?.like_count > 0 && <><span>·</span><span>👍 {formatViews(video.like_count).replace(" views", "")}</span></>}
{video?.category && <><span>·</span><span>{video.category}</span></>}
{video?.duration_seconds && (
<><span>·</span>