From b1c2a691028b41b047621da7b20cb0bfb65e2c2e Mon Sep 17 00:00:00 2001 From: Teromene Date: Fri, 3 Mar 2017 14:19:10 +0000 Subject: [PATCH] Fix WebFailBridge (again). It seems that they blacklist weird user agents, but not immediately. Switched to Firefox user agent, should stop causing problems. --- bridges/WebfailBridge.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bridges/WebfailBridge.php b/bridges/WebfailBridge.php index fbe710b1..a1060f4f 100644 --- a/bridges/WebfailBridge.php +++ b/bridges/WebfailBridge.php @@ -42,8 +42,7 @@ class WebfailBridge extends BridgeAbstract { public function collectData(){ - ini_set('user_agent', 'Mozilla/5.0(X11; Linux x86_64; rv:30.0) Gecko/20121202 Firefox/30.0(rss-bridge/0.1;\ - +https://github.com/RSS-Bridge/rss-bridge)'); + ini_set('user_agent', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0'); $html = getSimpleHTMLDOM($this->getURI() . $this->getInput('type'));