1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-20 21:54:58 -04:00

New: Replace HTML Encoded values in release titles

This commit is contained in:
Mark McDowall
2026-03-02 17:40:06 -08:00
parent c64f4adfc4
commit b135e5a2a4
4 changed files with 35 additions and 1 deletions
@@ -58,5 +58,16 @@ namespace NzbDrone.Core.Test.IndexerTests
result.First().CommentUrl.Should().Be("http://my.indexer.com/details/123#comments");
result.First().DownloadUrl.Should().Be("http://my.indexer.com/getnzb/123.nzb&i=782&r=123");
}
[Test]
public void should_decode_html_entities_in_item_title()
{
var xml = ReadAllText("Files/Indexers/encoded_title.xml");
var result = Subject.ParseResponse(CreateResponse("http://my.indexer.com/rss", xml));
result.Should().HaveCount(1);
result.First().Title.Should().Be("Series.&.Title.S02E19.EAC3.5.1.1080p.WEBRip.x265-iVy");
}
}
}