aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Providers
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-05-27 10:35:29 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-05-27 10:35:29 -0400
commit4c87979cac4df6560145b96d440aeba967466951 (patch)
tree3a7e3f94465c7c18345011046f4cd2c9f6de6144 /MediaBrowser.Providers
parent6da117f606610337c54f5c6065590d018c84d4f8 (diff)
handle overview stripping
Diffstat (limited to 'MediaBrowser.Providers')
-rw-r--r--MediaBrowser.Providers/Music/AudioDbArtistProvider.cs3
-rw-r--r--MediaBrowser.Providers/Music/LastfmArtistProvider.cs5
2 files changed, 5 insertions, 3 deletions
diff --git a/MediaBrowser.Providers/Music/AudioDbArtistProvider.cs b/MediaBrowser.Providers/Music/AudioDbArtistProvider.cs
index 6659116185..a6dab60b00 100644
--- a/MediaBrowser.Providers/Music/AudioDbArtistProvider.cs
+++ b/MediaBrowser.Providers/Music/AudioDbArtistProvider.cs
@@ -1,4 +1,5 @@
using MediaBrowser.Common.Configuration;
+using MediaBrowser.Common.Extensions;
using MediaBrowser.Common.IO;
using MediaBrowser.Common.Net;
using MediaBrowser.Controller.Configuration;
@@ -70,7 +71,7 @@ namespace MediaBrowser.Providers.Music
private void ProcessResult(MusicArtist item, Artist result)
{
item.HomePageUrl = result.strWebsite;
- item.Overview = result.strBiographyEN;
+ item.Overview = (result.strBiographyEN ?? string.Empty).StripHtml();
if (!string.IsNullOrEmpty(result.strGenre))
{
diff --git a/MediaBrowser.Providers/Music/LastfmArtistProvider.cs b/MediaBrowser.Providers/Music/LastfmArtistProvider.cs
index ea3525ba51..a2aa9d719e 100644
--- a/MediaBrowser.Providers/Music/LastfmArtistProvider.cs
+++ b/MediaBrowser.Providers/Music/LastfmArtistProvider.cs
@@ -1,4 +1,5 @@
-using MediaBrowser.Common.Net;
+using MediaBrowser.Common.Extensions;
+using MediaBrowser.Common.Net;
using MediaBrowser.Controller.Configuration;
using MediaBrowser.Controller.Entities;
using MediaBrowser.Controller.Entities.Audio;
@@ -103,7 +104,7 @@ namespace MediaBrowser.Providers.Music
Int32.TryParse(data.bio.yearformed, out yearFormed);
if (!artist.LockedFields.Contains(MetadataFields.Overview))
{
- artist.Overview = data.bio.content;
+ artist.Overview = (data.bio.content ?? string.Empty).StripHtml();
}
if (!string.IsNullOrEmpty(data.bio.placeformed) && !artist.LockedFields.Contains(MetadataFields.ProductionLocations))
{