mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-03 01:25:21 +02:00
refactor: drop usage of Debug::log (#4202)
* refactor: drop usage of Debug::log * lint
This commit is contained in:
parent
6afd13eb06
commit
2acd415475
20 changed files with 37 additions and 105 deletions
|
@ -70,9 +70,9 @@ class ThreadsBridge extends BridgeAbstract
|
|||
public function collectData()
|
||||
{
|
||||
$html = getSimpleHTMLDOMCached($this->getURI(), static::CACHE_TIMEOUT);
|
||||
Debug::log(sprintf('Fetched: %s', $this->getURI()));
|
||||
|
||||
$jsonBlobs = $html->find('script[type="application/json"]');
|
||||
Debug::log(sprintf('%d JSON blobs found.', count($jsonBlobs)));
|
||||
|
||||
$gatheredCodes = [];
|
||||
$limit = $this->getInput('limit');
|
||||
foreach ($jsonBlobs as $jsonBlob) {
|
||||
|
@ -87,7 +87,6 @@ class ThreadsBridge extends BridgeAbstract
|
|||
}
|
||||
}
|
||||
}
|
||||
Debug::log(sprintf('Candidate codes found in JSON in script tags: %s', print_r($gatheredCodes, true)));
|
||||
|
||||
$this->feedName = html_entity_decode($html->find('meta[property=og:title]', 0)->content);
|
||||
// todo: meta[property=og:description] could populate the feed description
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue