New IFDB url
This commit is contained in:
parent
766a390a51
commit
cb250dc8c0
|
@ -33,7 +33,7 @@ class IFDB extends Source {
|
|||
|
||||
public function parse() {
|
||||
$service = new \Sabre\Xml\Service();
|
||||
$xml = $this->get_text("http://ifdb.tads.org/allnew-rss");
|
||||
$xml = $this->get_text("http://ifdb.org/allnew-rss");
|
||||
$xml = tidy_repair_string($xml, [
|
||||
'output-xml' => true,
|
||||
'input-xml' => true
|
||||
|
@ -57,7 +57,7 @@ class IFDB extends Source {
|
|||
if (isset($keyValue['{}link'])) {
|
||||
$game->url = trim($keyValue['{}link']);
|
||||
$id = str_replace('http:', 'https:', $game->url);
|
||||
$id = str_replace('https://ifdb.tads.org/viewgame?id=', '', $id);
|
||||
$id = str_replace('https://ifdb.org/viewgame?id=', '', $id);
|
||||
$game->source_id = $id;
|
||||
}
|
||||
$game = $this->findGame($game);
|
||||
|
|
Reference in New Issue