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

Improve logging and error handling (#3059)

* refactor: logging and errror handling
This commit is contained in:
Dag
2022-10-16 17:55:43 +02:00
committed by GitHub
parent e21394d2d3
commit ffbc107687
13 changed files with 143 additions and 93 deletions

View File

@@ -19,7 +19,8 @@ class PatreonBridge extends BridgeAbstract
public function collectData()
{
$html = getSimpleHTMLDOMCached($this->getURI(), 86400);
$url = $this->getURI();
$html = getSimpleHTMLDOMCached($url);
$regex = '#/api/campaigns/([0-9]+)#';
if (preg_match($regex, $html->save(), $matches) > 0) {
$campaign_id = $matches[1];