mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-21 22:04:31 -04:00
Added tests and refactored TorrentRss code.
This commit is contained in:
@@ -156,6 +156,11 @@ namespace NzbDrone.Core.Indexers
|
||||
{
|
||||
var dateString = item.TryGetValue("pubDate");
|
||||
|
||||
if (dateString.IsNullOrWhiteSpace())
|
||||
{
|
||||
throw new UnsupportedFeedException("Rss feed must have a pubDate element with a valid publish date.");
|
||||
}
|
||||
|
||||
return XElementExtensions.ParseDate(dateString);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user