1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-01-17 14:18:35 +01:00

Revert "CssSelectorComplexBridge: Use cookies everywhere (#3827) (#3870)" (#3881)

This reverts commit 0c08f791efbfc6dd92f89d922984a6a41583de44.
This commit is contained in:
Dag 2024-01-09 21:28:43 +01:00 committed by GitHub
parent 0c08f791ef
commit 1fecc4cfc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -245,7 +245,7 @@ class CssSelectorComplexBridge extends BridgeAbstract
protected function getTitle($page, $title_cleanup)
{
if (is_string($page)) {
$page = getSimpleHTMLDOMCached($page, $this->getHeaders());
$page = getSimpleHTMLDOMCached($page);
}
$title = html_entity_decode($page->find('title', 0)->plaintext);
if (!empty($title)) {
@ -302,7 +302,7 @@ class CssSelectorComplexBridge extends BridgeAbstract
protected function htmlFindEntryElements($page, $entry_selector, $url_selector, $url_pattern = '', $limit = 0)
{
if (is_string($page)) {
$page = getSimpleHTMLDOM($page, $this->getHeaders());
$page = getSimpleHTMLDOM($page);
}
$entryElements = $page->find($entry_selector);
@ -355,7 +355,7 @@ class CssSelectorComplexBridge extends BridgeAbstract
*/
protected function fetchArticleElementFromPage($entry_url, $content_selector)
{
$entry_html = getSimpleHTMLDOMCached($entry_url, $this->getHeaders());
$entry_html = getSimpleHTMLDOMCached($entry_url);
$article_content = $entry_html->find($content_selector, 0);
if (is_null($article_content)) {