[banshee/stable-1.6] [MusicBrainzQueryJob] Escape album/artist (bgo#614569)
- From: Alexander Kojevnikov <alexk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee/stable-1.6] [MusicBrainzQueryJob] Escape album/artist (bgo#614569)
- Date: Sun, 4 Apr 2010 01:28:04 +0000 (UTC)
commit 89b83859de9cc9a8b00e8e5ddbe6cb20e9b1be0f
Author: Robin Stocker <robin nibor org>
Date: Sun Apr 4 11:19:57 2010 +1000
[MusicBrainzQueryJob] Escape album/artist (bgo#614569)
Signed-off-by: Alexander Kojevnikov <alexander kojevnikov com>
.../MusicBrainzQueryJob.cs | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/Core/Banshee.Services/Banshee.Metadata.MusicBrainz/MusicBrainzQueryJob.cs b/src/Core/Banshee.Services/Banshee.Metadata.MusicBrainz/MusicBrainzQueryJob.cs
index 92fdb91..cab9f1b 100644
--- a/src/Core/Banshee.Services/Banshee.Metadata.MusicBrainz/MusicBrainzQueryJob.cs
+++ b/src/Core/Banshee.Services/Banshee.Metadata.MusicBrainz/MusicBrainzQueryJob.cs
@@ -32,6 +32,7 @@ using System.Net;
using System.Xml;
using System.Text;
using System.Collections.Generic;
+using System.Web;
using Hyena;
using Banshee.Base;
@@ -108,8 +109,10 @@ namespace Banshee.Metadata.MusicBrainz
private string FindAsin ()
{
+ string album_artist = HttpUtility.UrlEncode (Track.AlbumArtist);
+ string album_title = HttpUtility.UrlEncode (Track.AlbumTitle);
Uri uri = new Uri (String.Format ("http://musicbrainz.org/ws/1/release/?type=xml&artist={0}&title={1}",
- Track.AlbumArtist, Track.AlbumTitle));
+ album_artist, album_title));
HttpWebResponse response = GetHttpStream (uri);
if (response == null) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]