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
@@ -58,6 +58,7 @@
|
||||
title: string;
|
||||
artist: string;
|
||||
year?: number;
|
||||
catalog_number?: string;
|
||||
artwork_path?: string;
|
||||
track_count: number;
|
||||
total_duration_secs: number;
|
||||
@@ -834,7 +835,8 @@
|
||||
|
||||
const options = await invoke<DiscogsImageOption[]>('discogs_search_artwork', {
|
||||
artist: selectedAlbum.artist,
|
||||
album: selectedAlbum.title
|
||||
album: selectedAlbum.title,
|
||||
catalogNumber: selectedAlbum.catalog_number || null
|
||||
});
|
||||
|
||||
discogsImageOptions = options;
|
||||
@@ -1419,6 +1421,7 @@
|
||||
<p class="artist">{selectedAlbum.artist}</p>
|
||||
{/if}
|
||||
<p class="meta">
|
||||
{#if selectedAlbum.catalog_number}Cat# {selectedAlbum.catalog_number} • {/if}
|
||||
{#if selectedAlbum.year}{selectedAlbum.year} • {/if}
|
||||
{selectedAlbum.track_count} tracks •
|
||||
{formatTotalDuration(selectedAlbum.total_duration_secs)}
|
||||
|
||||
Reference in new issue
Block a user