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:
@@ -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];
|
||||
|
Reference in New Issue
Block a user