mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-01-17 06:08:27 +01: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:
parent
87f8571ccf
commit
003ab58514
@ -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">
|
||||
|
Loading…
x
Reference in New Issue
Block a user