mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-23 18:15:28 +03:00
[ZoneTelechargementBridge] Make the bridge more robust to URL change (#881)
Using the classical www.zone-telechargement1.org as base URL, the bridge will always be redirected to the actual wwX.zone-telechargement1.org final URL. This makes the bridge more robust to URL changes.
This commit is contained in:
parent
a508dddb36
commit
b4b5340b7e
1 changed files with 5 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
class ZoneTelechargementBridge extends BridgeAbstract {
|
class ZoneTelechargementBridge extends BridgeAbstract {
|
||||||
const NAME = 'Zone Telechargement';
|
const NAME = 'Zone Telechargement';
|
||||||
const URI = 'https://ww4.zone-telechargement1.org/';
|
const URI = 'https://www.zone-telechargement1.org/';
|
||||||
const DESCRIPTION = 'Suivi de série sur Zone Telechargement';
|
const DESCRIPTION = 'Suivi de série sur Zone Telechargement';
|
||||||
const MAINTAINER = 'sysadminstory';
|
const MAINTAINER = 'sysadminstory';
|
||||||
const PARAMETERS = array(
|
const PARAMETERS = array(
|
||||||
|
@ -58,7 +58,7 @@ class ZoneTelechargementBridge extends BridgeAbstract {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getName(){
|
public function getName() {
|
||||||
switch($this->queriedContext) {
|
switch($this->queriedContext) {
|
||||||
case 'Suivre la publication des épisodes d\'une série en cours de diffusion':
|
case 'Suivre la publication des épisodes d\'une série en cours de diffusion':
|
||||||
return $this->showTitle . ' - ' . self::NAME;
|
return $this->showTitle . ' - ' . self::NAME;
|
||||||
|
@ -68,8 +68,7 @@ class ZoneTelechargementBridge extends BridgeAbstract {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private function findLinkHoster($element)
|
private function findLinkHoster($element) {
|
||||||
{
|
|
||||||
// The hoster name is one level higher than the link tag : get the parent element
|
// The hoster name is one level higher than the link tag : get the parent element
|
||||||
$element = $element->parent();
|
$element = $element->parent();
|
||||||
//echo "PARENT : $element \n";
|
//echo "PARENT : $element \n";
|
||||||
|
|
Loading…
Reference in a new issue