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:
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user