Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ZoneTelechargement] Update URL #1710

Merged
merged 1 commit into from
Aug 19, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions bridges/ZoneTelechargementBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class ZoneTelechargementBridge extends BridgeAbstract {
*/

const NAME = 'Zone Telechargement';
const URI = 'https://www.zone-annuaire.com/';
const URI = 'https://www.zt-za.com/';
const DESCRIPTION = 'Suivi de série sur Zone Telechargement';
const MAINTAINER = 'sysadminstory';
const PARAMETERS = array(
Expand All @@ -17,18 +17,21 @@ class ZoneTelechargementBridge extends BridgeAbstract {
'name' => 'URL de la série',
'type' => 'text',
'required' => true,
'title' => 'URL d\'une série sans le https://www.zone-annuaire.com/',
'title' => 'URL d\'une série sans le https://www.zt-za.com/',
'exampleValue' => 'telecharger-series/31079-halt-and-catch-fire-saison-4-french-hd720p.html'
)
)
);

// This is an URL that is not protected by robot protection
const UNPROTECED_URI = 'https://www.zone-annuaire.com/';

public function getIcon() {
return self::URI . '/templates/Default/images/favicon.ico';
}

public function collectData(){
$html = getSimpleHTMLDOM(self::URI . $this->getInput('url'))
$html = getSimpleHTMLDOM(self::UNPROTECED_URI . $this->getInput('url'))
or returnServerError('Could not request Zone Telechargement.');

// Get the TV show title
Expand Down