1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-01-22 07:26:47 +01:00

Unpack artist/title from SomaFM streams correctly.

Fixes issue #497
This commit is contained in:
John Maguire 2010-07-15 12:59:14 +00:00
parent 579c7cc592
commit 95bb4eccea

View File

@ -356,6 +356,11 @@ void Player::EngineMetadataReceived(const Engine::SimpleMetaBundle& bundle) {
bundle_copy.title = bundle_copy.title.left(dash_pos).trimmed();
}
// Hack as SomaFM's artist/title descriptions are backwards.
if (item->Url().host().contains("somafm.com")) {
qSwap(bundle_copy.artist, bundle_copy.title);
}
Song song = item->Metadata();
song.MergeFromSimpleMetaBundle(bundle_copy);