ifhub
/
ifnews
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
1 changed files with 2 additions and 2 deletions

View File

@ -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);