mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-26 11:26:31 +03:00
[Euronews] fix: use correct url (#2916)
The non-www domain has a tls config error.
This commit is contained in:
parent
e89329b2c6
commit
40dc0a2e5f
1 changed files with 7 additions and 3 deletions
|
@ -13,9 +13,9 @@ class EuronewsBridge extends BridgeAbstract
|
|||
'lang' => [
|
||||
'name' => 'Language',
|
||||
'type' => 'list',
|
||||
'defaultValue' => 'euronews.com',
|
||||
'defaultValue' => 'www.euronews.com',
|
||||
'values' => [
|
||||
'English' => 'euronews.com',
|
||||
'English' => 'www.euronews.com',
|
||||
'French' => 'fr.euronews.com',
|
||||
'German' => 'de.euronews.com',
|
||||
'Italian' => 'it.euronews.com',
|
||||
|
@ -48,7 +48,11 @@ class EuronewsBridge extends BridgeAbstract
|
|||
public function collectData()
|
||||
{
|
||||
$limit = $this->getInput('limit');
|
||||
$root_url = 'https://' . $this->getInput('lang');
|
||||
$lang = $this->getInput('lang');
|
||||
if ($lang === 'euronews.com') {
|
||||
$lang = 'www.euronews.com';
|
||||
}
|
||||
$root_url = 'https://' . $lang;
|
||||
$url = $root_url . '/api/timeline.json?limit=' . $limit;
|
||||
$json = getContents($url);
|
||||
$data = json_decode($json, true);
|
||||
|
|
Loading…
Reference in a new issue