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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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);