mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 01:55:21 +02:00
fix(binance): plus some other tweaks (#3753)
This commit is contained in:
parent
fd52b9b9a4
commit
5f37c72be0
9 changed files with 46 additions and 53 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue