mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 18:14:44 +02:00
fix(vice): news rss changed (#3694)
* fix: typo in prior commit * fix(vice): news rss changed
This commit is contained in:
parent
bab02bf190
commit
0c69148cff
3 changed files with 8 additions and 3 deletions
|
@ -5,7 +5,7 @@ class ViceBridge extends FeedExpander
|
|||
const MAINTAINER = 'IceWreck';
|
||||
const NAME = 'Vice Bridge';
|
||||
const URI = 'https://www.vice.com/';
|
||||
const CACHE_TIMEOUT = 3600; // This is a news site, so don't cache for more than 10 mins
|
||||
const CACHE_TIMEOUT = 3600;
|
||||
const DESCRIPTION = 'RSS feed for vice publications like Vice News, Munchies, Motherboard, etc.';
|
||||
const PARAMETERS = [ [
|
||||
'feed' => [
|
||||
|
@ -24,6 +24,10 @@ class ViceBridge extends FeedExpander
|
|||
public function collectData()
|
||||
{
|
||||
$feed = $this->getInput('feed');
|
||||
if ($feed === 'rss') {
|
||||
// They changed url in Sep 2023
|
||||
$feed = 'en/rss';
|
||||
}
|
||||
$feedURL = 'https://www.vice.com/' . $feed;
|
||||
$this->collectExpandableDatas($feedURL, 10);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue