libMusicForge
Loading...
Searching...
No Matches
musicforge.identification Namespace Reference

Cross-provider lookup with explicit, non-authoritative name matching. More...

Classes

class  RecordingSearchIf
 Contract for recording candidate searches. More...
class  TrackStatisticsIf
 Contract for track statistics lookup. More...
class  EnrichedTrack
 Independent recording candidates and statistics with partial failure information. More...

Functions

EnrichedTrack identify_and_enrich (RecordingSearchIf metadata, TrackStatisticsIf statistics, str artist, str title)
 Retrieve MusicBrainz candidates and independent Last.fm track metrics.

Detailed Description

Cross-provider lookup with explicit, non-authoritative name matching.

MusicBrainz identifies candidate recordings; Last.fm statistics are looked up by artist/title, not by MusicBrainz recording ID. No identity equivalence is claimed or inferred.

Function Documentation

◆ identify_and_enrich()

EnrichedTrack musicforge.identification.identify_and_enrich ( RecordingSearchIf metadata,
TrackStatisticsIf statistics,
str artist,
str title )

Retrieve MusicBrainz candidates and independent Last.fm track metrics.

Parameters
metadataRecording search provider.
statisticsTrack statistics provider.
artistArtist name.
titleTrack title.
Returns
Independent lookup results with partial failures retained.

Results deliberately retain all recording candidates. Last.fm totals are associated with the artist/title query, never with an individual MusicBrainz recording or release.