feat(backend): record listening history for YouTube playback

Playing a YouTube song now creates a lightweight track row (without queueing a download) and writes listening history; saving to a playlist queues the download via the new DownloadRequested flag.
This commit is contained in:
2026-07-16 01:15:36 +02:00
parent 37e0a4a4bf
commit c5b0ee3e48
8 changed files with 869 additions and 16 deletions
@@ -322,6 +322,9 @@ namespace Musify.Infrastructure.Persistence.Migrations
b.Property<DateTime>("CreatedAt")
.HasColumnType("timestamp with time zone");
b.Property<bool>("DownloadRequested")
.HasColumnType("boolean");
b.Property<int>("Duration")
.HasColumnType("integer");