Skip to content

Commit

Permalink
Inline whyEmptyMessage and fix spelling of AcoustID
Browse files Browse the repository at this point in the history
  • Loading branch information
daschuer committed Sep 23, 2024
1 parent 3347111 commit 4f4f281
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/musicbrainz/tagfetcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ void TagFetcher::slotFingerprintReady() {
return;
}

emit fetchProgress(tr("Identifying track through Acoustid"));
emit fetchProgress(tr("Identifying track through AcoustID"));
DEBUG_ASSERT(!m_pAcoustIdTask);
m_pAcoustIdTask = make_parented<mixxx::AcoustIdLookupTask>(
&m_network,
Expand Down Expand Up @@ -167,7 +167,7 @@ void TagFetcher::slotAcoustIdTaskSucceeded(
emit resultAvailable(
std::move(pTrack),
{},
tr("Could not identify track through Acoustid."));
tr("Could not identify track through AcoustID."));
return;
}

Expand Down Expand Up @@ -301,15 +301,17 @@ void TagFetcher::slotMusicBrainzTaskSucceeded(
auto pTrack = m_pTrack;
terminate();

QString whyEmptyMessage;
if (guessedTrackReleases.empty()) {
whyEmptyMessage = tr("Could not find this track in the MusicBrainz database.");
emit resultAvailable(
std::move(pTrack),
{},
tr("Could not find this track in the MusicBrainz database."));
} else {
emit resultAvailable(
std::move(pTrack),
std::move(guessedTrackReleases),
{});
}

emit resultAvailable(
std::move(pTrack),
std::move(guessedTrackReleases),
whyEmptyMessage);
}

void TagFetcher::startFetchCoverArtLinks(
Expand Down

0 comments on commit 4f4f281

Please sign in to comment.