fix: change default curl user agent (#2926)

This commit is contained in:
Dag 2022-07-31 03:58:07 +02:00 committed by GitHub
parent 0a060b2ad6
commit cd0ca7f645
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -30,7 +30,7 @@ class NovelUpdatesBridge extends BridgeAbstract
{
$fullhtml = getSimpleHTMLDOM($this->getURI());
$this->seriesTitle = $fullhtml->find('h4.seriestitle', 0)->plaintext;
$this->seriesTitle = $fullhtml->find('div.seriestitlenu', 0)->plaintext;
// dirty fix for nasty simpledom bug: https://github.com/sebsauvage/rss-bridge/issues/259
// forcefully removes tbody
$html = $fullhtml->find('table#myTable', 0)->innertext;
@ -66,7 +66,6 @@ class NovelUpdatesBridge extends BridgeAbstract
if (!empty($this->seriesTitle)) {
return $this->seriesTitle . ' - ' . static::NAME;
}
return parent::getName();
}
}

View File

@ -14,7 +14,7 @@ timezone = "UTC"
[http]
timeout = 60
useragent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36"
useragent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0"
[cache]