[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:
sysadminstory 2018-10-22 19:22:02 +02:00 committed by LogMANOriginal
parent a508dddb36
commit b4b5340b7e

View file

@ -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(
@ -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";