1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-02 06:40:23 +02:00

[FurAffinity] fix: errror (#2887)

They changed parts of the dom.

Fix error:
Error: Call to a member function find() on null

Fixes #2868
This commit is contained in:
Dag
2022-07-10 19:48:37 +02:00
committed by GitHub
parent 87f8571ccf
commit 003ab58514

View File

@@ -914,10 +914,13 @@ class FurAffinityBridge extends BridgeAbstract
$imgURL = 'https:' . $previewSrc;
}
$description = $submissionHTML
->find('.maintable .maintable tr td.alt1', -1);
$this->setReferrerPolicy($description);
$description = $description->innertext;
$description = $submissionHTML->find('div.submission-description', 0);
if ($description) {
$this->setReferrerPolicy($description);
$description = trim($description->innertext);
} else {
$description = '';
}
$item['content'] = <<<EOD
<a href="$submissionURL">