Fix IFDB in case RSS has errors
This commit is contained in:
parent
aa66689189
commit
99b4467cca
|
@ -25,6 +25,10 @@ class IFDB extends Source {
|
|||
protected function parse() {
|
||||
$service = new \Sabre\Xml\Service();
|
||||
$xml = $this->get_text("http://ifdb.tads.org/allnew-rss");
|
||||
$xml = tidy_repair_string($xml, [
|
||||
'output-xml' => true,
|
||||
'input-xml' => true
|
||||
]);
|
||||
$service->elementMap = [
|
||||
'{}item' => function(\Sabre\Xml\Reader $reader) {
|
||||
$game = new Game;
|
||||
|
|
Reference in New Issue