Archived
1
0
Fork 0

New IFDB url

This commit is contained in:
Alexander Yakovlev 2021-03-08 11:26:43 +07:00
parent 766a390a51
commit cb250dc8c0
Signed by: oreolek
GPG key ID: 1CDC4B7820C93BD3

View file

@ -33,7 +33,7 @@ class IFDB extends Source {
public function parse() { public function parse() {
$service = new \Sabre\Xml\Service(); $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, [ $xml = tidy_repair_string($xml, [
'output-xml' => true, 'output-xml' => true,
'input-xml' => true 'input-xml' => true
@ -57,7 +57,7 @@ class IFDB extends Source {
if (isset($keyValue['{}link'])) { if (isset($keyValue['{}link'])) {
$game->url = trim($keyValue['{}link']); $game->url = trim($keyValue['{}link']);
$id = str_replace('http:', 'https:', $game->url); $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->source_id = $id;
} }
$game = $this->findGame($game); $game = $this->findGame($game);