fixed library scan using event listeners instead of store pattern

This commit is contained in:
2026-02-24 15:04:35 -05:00
parent 1221a403cf
commit d764fefb10
14 changed files with 612 additions and 136 deletions
-5
View File
@@ -1,5 +0,0 @@
// Package models defines domain types for music data.
package models
// Art holds album artwork data.
type Art struct{}
-13
View File
@@ -1,13 +0,0 @@
package models
import "time"
// AudioFileType identifies the format of an audio file.
type AudioFileType int
// AudioFile represents a music file with its metadata.
type AudioFile struct {
Path string
Type AudioFileType
Length time.Duration
}
-21
View File
@@ -1,21 +0,0 @@
package models
// Album represents a music album with its tracks and metadata.
type Album struct {
Name string
Tracks []Track
MusicBrainzReleaseID string
CoverArt Art
}
// Track represents a single music track.
type Track struct {
Name string
MusicBrainzRecordingID string
}
// Artist represents a music artist.
type Artist struct {
Name string
MusicBrainzArtistID string
}