1
0
Fork 0
forked from blallo/rss-bridge

[RTBFBridge] Update URI

A series URL still looks like: https://www.rtbf.be/auvio/emissions/detail?id=3553

But an individual episode has been changed from https://www.rtbf.be/auvio/emissions/detail?id=2217881 to https://www.rtbf.be/auvio/detail?id=2217881
This commit is contained in:
Frans de Jonge 2017-05-28 20:15:59 +02:00 committed by GitHub
parent 8ed4812e00
commit 601f61f063

View file

@ -1,7 +1,7 @@
<?php
class RTBFBridge extends BridgeAbstract {
const NAME = 'RTBF Bridge';
const URI = 'http://www.rtbf.be/auvio/emissions/';
const URI = 'http://www.rtbf.be/auvio/';
const CACHE_TIMEOUT = 21600; //6h
const DESCRIPTION = 'Returns the newest RTBF videos by series ID';
const MAINTAINER = 'Frenzie';
@ -50,10 +50,10 @@ class RTBFBridge extends BridgeAbstract {
public function getURI(){
if(!is_null($this->getInput('c'))){
return self::URI . 'detail?id=' . $this->getInput('c');
return self::URI . 'emissions/detail?id=' . $this->getInput('c');
}
return parent::getURI();
return parent::getURI() . 'emissions/';
}
public function getName(){