Add catalog number support for precise Discogs searches
- Added catalog_number field to LocalTrack and LocalAlbum models - Extract catalog_number tag from audio files using lofty - Database migration to add catalog_number column to local_tracks table - Modified Discogs search to prefer catalog number over artist/album - Updated UI to display catalog number in album details - Pass catalog_number to discogs_search_artwork command For audiophile users with well-tagged libraries, catalog numbers provide more precise Discogs search results than artist + album.
This commit is contained in:
1 parent
2a5c181618
commit
279d433b77
7 files changed
+72
-17
No files matched your search
@@ -51,6 +51,7 @@ pub struct LocalTrack {
|
||||
pub disc_number: Option<u32>,
|
||||
pub year: Option<u32>,
|
||||
pub genre: Option<String>,
|
||||
pub catalog_number: Option<String>,
|
||||
|
||||
// Audio properties
|
||||
pub duration_secs: u64,
|
||||
@@ -88,6 +89,7 @@ impl Default for LocalTrack {
|
||||
disc_number: None,
|
||||
year: None,
|
||||
genre: None,
|
||||
catalog_number: None,
|
||||
duration_secs: 0,
|
||||
format: AudioFormat::Unknown,
|
||||
bit_depth: None,
|
||||
@@ -120,6 +122,7 @@ pub struct LocalAlbum {
|
||||
pub title: String,
|
||||
pub artist: String,
|
||||
pub year: Option<u32>,
|
||||
pub catalog_number: Option<String>,
|
||||
pub artwork_path: Option<String>,
|
||||
pub track_count: u32,
|
||||
pub total_duration_secs: u64,
|
||||
|
||||
Reference in new issue
Block a user