1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-10 02:26:37 +02:00

fix(binance): plus some other tweaks (#3753)

This commit is contained in:
Dag
2023-10-13 20:48:08 +02:00
committed by GitHub
parent fd52b9b9a4
commit 5f37c72be0
9 changed files with 46 additions and 53 deletions

View File

@@ -224,7 +224,7 @@ class CssSelectorComplexBridge extends BridgeAbstract
{
if (!empty($url_pattern)) {
$url_pattern = '/' . str_replace('/', '\/', $url_pattern) . '/';
$links = array_filter($links, function ($url) {
$links = array_filter($links, function ($url) use ($url_pattern) {
return preg_match($url_pattern, $url) === 1;
});
}
@@ -359,7 +359,7 @@ class CssSelectorComplexBridge extends BridgeAbstract
$article_content = $entry_html->find($content_selector, 0);
if (is_null($article_content)) {
returnClientError('Could not article content at URL: ' . $entry_url);
returnClientError('Could not get article content at URL: ' . $entry_url);
}
$article_content = defaultLinkTo($article_content, $entry_url);