[banshee] Set UserAgent when doing MusicBrainz queries (bgo#649401)
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] Set UserAgent when doing MusicBrainz queries (bgo#649401)
- Date: Wed, 4 May 2011 21:07:20 +0000 (UTC)
commit 1657c80797b1d1c343038faa47d014eddae3f55a
Author: Gabriel Burt <gabriel burt gmail com>
Date: Wed May 4 16:05:00 2011 -0500
Set UserAgent when doing MusicBrainz queries (bgo#649401)
Our Audio CD metadata lookup and coverart lookup that depend on MB were
broken without this.
.../MusicBrainzQueryJob.cs | 1 +
.../Banshee.AudioCd/AudioCdDiscModel.cs | 2 ++
2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/Core/Banshee.Services/Banshee.Metadata.MusicBrainz/MusicBrainzQueryJob.cs b/src/Core/Banshee.Services/Banshee.Metadata.MusicBrainz/MusicBrainzQueryJob.cs
index 7dc9248..490bd34 100644
--- a/src/Core/Banshee.Services/Banshee.Metadata.MusicBrainz/MusicBrainzQueryJob.cs
+++ b/src/Core/Banshee.Services/Banshee.Metadata.MusicBrainz/MusicBrainzQueryJob.cs
@@ -83,6 +83,7 @@ namespace Banshee.Metadata.MusicBrainz
public MusicBrainzQueryJob (IBasicTrackInfo track)
{
Track = track;
+ MusicBrainzService.UserAgent = Banshee.Web.Browser.UserAgent;
}
public override void Run ()
diff --git a/src/Extensions/Banshee.AudioCd/Banshee.AudioCd/AudioCdDiscModel.cs b/src/Extensions/Banshee.AudioCd/Banshee.AudioCd/AudioCdDiscModel.cs
index 24b6972..51a35d0 100644
--- a/src/Extensions/Banshee.AudioCd/Banshee.AudioCd/AudioCdDiscModel.cs
+++ b/src/Extensions/Banshee.AudioCd/Banshee.AudioCd/AudioCdDiscModel.cs
@@ -74,6 +74,8 @@ namespace Banshee.AudioCd
{
this.volume = volume;
disc_title = Catalog.GetString ("Audio CD");
+
+ MusicBrainzService.UserAgent = Banshee.Web.Browser.UserAgent;
}
public void NotifyUpdated ()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]