From 146639ffc91ad12527a768589ff0ca70c0953b3e Mon Sep 17 00:00:00 2001 From: sysadminstory Date: Mon, 12 Apr 2021 20:01:09 +0200 Subject: [PATCH] [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. --- bridges/ZoneTelechargementBridge.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/bridges/ZoneTelechargementBridge.php b/bridges/ZoneTelechargementBridge.php index 1158272b..fcad0dcb 100644 --- a/bridges/ZoneTelechargementBridge.php +++ b/bridges/ZoneTelechargementBridge.php @@ -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();