feat: add db cleanup command line argument
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user