[ZoneTelechargement] Update unprotected URL and Feed URL (#2065)

The unproteced URL has changed again, and has been updated.

The RSS Feed URL is now a link to the Show page and not to the Homepage anymore.
This commit is contained in:
sysadminstory 2021-04-12 20:01:09 +02:00 committed by GitHub
parent e1c19461ca
commit 146639ffc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 1 deletions

View File

@ -34,7 +34,7 @@ class ZoneTelechargementBridge extends BridgeAbstract {
);
// This is an URL that is not protected by robot protection for Direct Download
const UNPROTECTED_URI = 'https://www.zt-za.com/';
const UNPROTECTED_URI = 'https://www.zone-telechargement.net/';
// This is an URL that is not protected by robot protection for Streaming Links
const UNPROTECTED_URI_STREAMING = 'https://zone-telechargement.stream/';
@ -142,6 +142,16 @@ class ZoneTelechargementBridge extends BridgeAbstract {
}
}
public function getURI() {
switch($this->queriedContext) {
case 'Suivre la publication des épisodes d\'une série en cours de diffusion':
return self::URI . $this->getInput('url');
break;
default:
return self::URI;
}
}
private function findLinkHoster($element) {
// The hoster name is one level higher than the link tag : get the parent element
$element = $element->parent();