mirror of
https://github.com/Radarr/Radarr
synced 2024-12-25 17:27:59 +00:00
fixed Dtd issues on Linux.
This commit is contained in:
parent
3e65c393fd
commit
87ac2b3b76
4 changed files with 3 additions and 7 deletions
|
@ -1,7 +1,4 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace NzbDrone.Common
|
||||
{
|
||||
|
|
|
@ -44,17 +44,17 @@ public void wombles_rss()
|
|||
|
||||
|
||||
[Test]
|
||||
[Explicit("needs newznab api key")]
|
||||
public void nzbsorg_rss()
|
||||
{
|
||||
var indexer = new Newznab();
|
||||
indexer.Settings = new NewznabSettings
|
||||
{
|
||||
ApiKey = "",
|
||||
ApiKey = "64d61d3cfd4b75e51d01cbc7c6a78275",
|
||||
Url = "http://nzbs.org"
|
||||
};
|
||||
|
||||
indexer.InstanceDefinition = new IndexerDefinition();
|
||||
indexer.InstanceDefinition.Name = "nzbs.org";
|
||||
|
||||
var result = Subject.FetchRss(indexer);
|
||||
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
using NLog;
|
||||
using NzbDrone.Common;
|
||||
using NzbDrone.Common.Serializer;
|
||||
using NzbDrone.Core.Configuration;
|
||||
|
||||
namespace NzbDrone.Core.DataAugmentation.DailySeries
|
||||
{
|
||||
|
|
|
@ -27,7 +27,7 @@ public BasicRssParser()
|
|||
|
||||
public IEnumerable<ReportInfo> Process(string xml, string url)
|
||||
{
|
||||
using (var xmlTextReader = new XmlTextReader(new StringReader(xml)) { DtdProcessing = DtdProcessing.Ignore })
|
||||
using (var xmlTextReader = XmlReader.Create(new StringReader(xml), new XmlReaderSettings { ProhibitDtd = false, IgnoreComments = true }))
|
||||
{
|
||||
var document = XDocument.Load(xmlTextReader);
|
||||
var items = document.Descendants("item");
|
||||
|
|
Loading…
Reference in a new issue