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:
parent
bf7ce98719
commit
b1c2a69102
1 changed files with 1 additions and 2 deletions
|
@ -42,8 +42,7 @@ class WebfailBridge extends BridgeAbstract {
|
||||||
|
|
||||||
public function collectData(){
|
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;\
|
ini_set('user_agent', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0');
|
||||||
+https://github.com/RSS-Bridge/rss-bridge)');
|
|
||||||
|
|
||||||
$html = getSimpleHTMLDOM($this->getURI() . $this->getInput('type'));
|
$html = getSimpleHTMLDOM($this->getURI() . $this->getInput('type'));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue