mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 03:26:07 +02:00
revert overview change
This commit is contained in:
parent
6a1414ab15
commit
434a9e28b2
1 changed files with 8 additions and 7 deletions
|
@ -146,15 +146,16 @@ namespace MediaBrowser.Controller.Providers
|
||||||
|
|
||||||
case "Overview":
|
case "Overview":
|
||||||
case "Description":
|
case "Description":
|
||||||
var overview = reader.ReadInnerXml();
|
|
||||||
const string cdataRegex = @"\<\!\[CDATA\[(?<text>.*)\]\]\>";
|
|
||||||
if (Regex.IsMatch(overview, cdataRegex))
|
|
||||||
{
|
{
|
||||||
var match = Regex.Match(overview, cdataRegex);
|
var val = reader.ReadElementContentAsString();
|
||||||
overview = match.Groups["text"].Value;
|
|
||||||
|
if (!string.IsNullOrWhiteSpace(val))
|
||||||
|
{
|
||||||
|
item.Overview = val;
|
||||||
|
}
|
||||||
|
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
item.Overview = overview;
|
|
||||||
break;
|
|
||||||
|
|
||||||
case "TagLine":
|
case "TagLine":
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue