Three features wired together: 1. 'In Library' badges on explore search results: CheckLibraryMBIDs Wails binding batch-checks which search result MBIDs exist in the local library. Green badges render on matching artist cards and album cards. 2. Artist images on local artist-details page: Local artist pages now call GetArtistMBID(name) to resolve the MBID from tags, then GetArtistImageURL(mbid) to fetch the cached Wikimedia photo. Falls back to initial-letter avatar. 3. Tier 3 search index uses direct MBIDs from tags: buildTier3Library now reads artists.mbid column (from audio tags) for direct MBID matching, falling back to name matching for untagged artists. Eliminates false matches and catches artists that name matching misses.
41 lines
1.6 KiB
TypeScript
Executable File
41 lines
1.6 KiB
TypeScript
Executable File
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
|
// This file is automatically generated. DO NOT EDIT
|
|
import {explore} from '../models';
|
|
import {context} from '../models';
|
|
|
|
export function BrowseReleaseGroups(arg1:string):Promise<Array<explore.MBReleaseGroup>>;
|
|
|
|
export function BrowseReleases(arg1:string):Promise<Array<explore.MBRelease>>;
|
|
|
|
export function CoverArtGroupURL(arg1:string):Promise<string>;
|
|
|
|
export function CoverArtURL(arg1:string):Promise<string>;
|
|
|
|
export function GetArtistImageURL(arg1:string):Promise<string>;
|
|
|
|
export function GetThumbnail(arg1:string,arg2:string,arg3:string):Promise<string>;
|
|
|
|
export function GetThumbnails(arg1:Array<explore.ThumbnailRequest>):Promise<Record<string, string>>;
|
|
|
|
export function LookupArtist(arg1:string):Promise<explore.MBArtist>;
|
|
|
|
export function LookupReleaseGroup(arg1:string):Promise<explore.MBReleaseGroup>;
|
|
|
|
export function Search(arg1:string):Promise<explore.MBSearchResult>;
|
|
|
|
export function SearchArtists(arg1:string):Promise<Array<explore.MBArtist>>;
|
|
|
|
export function SearchRecordings(arg1:string):Promise<Array<explore.MBRecording>>;
|
|
|
|
export function SearchReleaseGroups(arg1:string):Promise<Array<explore.MBReleaseGroup>>;
|
|
|
|
export function SetContext(arg1:context.Context):Promise<void>;
|
|
|
|
export function SimilarArtists(arg1:string):Promise<Array<explore.LBSimilarArtist>>;
|
|
|
|
export function TopRecordingsForArtist(arg1:string):Promise<Array<explore.LBTopRecording>>;
|
|
|
|
export function CheckLibraryMBIDs(arg1:string[]):Promise<Record<string, string>>;
|
|
|
|
export function GetArtistMBID(arg1:string):Promise<string>;
|