#22 - Need to strip html tags from overviews
This commit is contained in:
@@ -2,14 +2,13 @@
|
||||
using MediaBrowser.Controller.Configuration;
|
||||
using MediaBrowser.Controller.Entities;
|
||||
using MediaBrowser.Controller.MediaInfo;
|
||||
using MediaBrowser.Controller.Persistence;
|
||||
using MediaBrowser.Model.Entities;
|
||||
using MediaBrowser.Model.Logging;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using MediaBrowser.Model.Logging;
|
||||
|
||||
namespace MediaBrowser.Controller.Providers.MediaInfo
|
||||
{
|
||||
|
||||
@@ -54,7 +54,7 @@ namespace MediaBrowser.Controller.Providers.Music
|
||||
{
|
||||
get
|
||||
{
|
||||
return "3-12-13.2";
|
||||
return "3-12-13.3";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Threading.Tasks;
|
||||
using MediaBrowser.Common.Extensions;
|
||||
using MediaBrowser.Controller.Entities;
|
||||
using MediaBrowser.Model.Entities;
|
||||
using System;
|
||||
|
||||
namespace MediaBrowser.Controller.Providers.Music
|
||||
{
|
||||
@@ -18,11 +14,6 @@ namespace MediaBrowser.Controller.Providers.Music
|
||||
{
|
||||
var overview = data.bio != null ? data.bio.content : null;
|
||||
|
||||
if (!string.IsNullOrEmpty(overview))
|
||||
{
|
||||
overview = StripHtml(overview);
|
||||
}
|
||||
|
||||
artist.Overview = overview;
|
||||
|
||||
var yearFormed = 0;
|
||||
@@ -53,11 +44,6 @@ namespace MediaBrowser.Controller.Providers.Music
|
||||
|
||||
var overview = data.wiki != null ? data.wiki.content : null;
|
||||
|
||||
if (!string.IsNullOrEmpty(overview))
|
||||
{
|
||||
overview = StripHtml(overview);
|
||||
}
|
||||
|
||||
item.Overview = overview;
|
||||
|
||||
var release = DateTime.MinValue;
|
||||
@@ -70,13 +56,6 @@ namespace MediaBrowser.Controller.Providers.Music
|
||||
}
|
||||
}
|
||||
|
||||
private static string StripHtml(string htmlString)
|
||||
{
|
||||
// http://stackoverflow.com/questions/1349023/how-can-i-strip-html-from-text-in-net
|
||||
const string pattern = @"<(.|\n)*?>";
|
||||
return Regex.Replace(htmlString, pattern, string.Empty);
|
||||
}
|
||||
|
||||
private static void AddGenres(BaseItem item, LastfmTags tags)
|
||||
{
|
||||
foreach (var tag in tags.tag)
|
||||
|
||||
Reference in New Issue
Block a user