feat: add db cleanup command line argument

This commit is contained in:
2026-01-26 04:29:36 +01:00
parent 56273c2e3f
commit 3a68531fb4
3 changed files with 131 additions and 6 deletions

View File

@@ -20,8 +20,8 @@ public class Song
public int Index { get; set; }
public int? TrackNumber { get; set; } = null;
public int? DiscNumber { get; set; } = null;
required public int AlbumId { get; set; }
required public int ArtistId { get; set; }
public int AlbumId { get; set; }
public int ArtistId { get; set; }
public int? ImageId { get; set; } = null;
// Songs without an album entry shall default to "[Unnamed album]".
@@ -31,6 +31,7 @@ public class Song
public List<GenreSong> GenreSongPair { get; set; } = [];
public Image? Image { get; set; } = null;
// TODO: Turn these into an enum.
public bool IsOk() => State == 0;
public bool IsOrphaned() => State == 1;
public bool IsArchived() => State == 2;