1
0
Fork 0
forked from blallo/rss-bridge

Fix WebFailBridge (again).

It seems that they blacklist weird user agents, but not immediately. Switched to Firefox user agent, should stop causing problems.
This commit is contained in:
Teromene 2017-03-03 14:19:10 +00:00
parent bf7ce98719
commit b1c2a69102

View file

@ -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'));