mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-10 17:08:47 +00:00
[FreeTelechargerBridge] Update URL and some fix
- Updated the URL to the new URL in the bridge Meta Data - Use an other URL that seems to permit to bypass CF protection (sometimes)
This commit is contained in:
parent
00a24e2f69
commit
70b02b7097
@ -3,7 +3,8 @@
|
|||||||
class FreeTelechargerBridge extends BridgeAbstract
|
class FreeTelechargerBridge extends BridgeAbstract
|
||||||
{
|
{
|
||||||
const NAME = 'Free-Telecharger';
|
const NAME = 'Free-Telecharger';
|
||||||
const URI = 'https://www.free-telecharger.art/';
|
const URI = 'https://www.free-telecharger.fun/';
|
||||||
|
const ALTERNATEURI = 'https://www.free-telecharger.com/';
|
||||||
const DESCRIPTION = 'Suivi de série sur Free-Telecharger';
|
const DESCRIPTION = 'Suivi de série sur Free-Telecharger';
|
||||||
const MAINTAINER = 'sysadminstory';
|
const MAINTAINER = 'sysadminstory';
|
||||||
const PARAMETERS = [
|
const PARAMETERS = [
|
||||||
@ -12,19 +13,19 @@ class FreeTelechargerBridge extends BridgeAbstract
|
|||||||
'name' => 'URL de la série',
|
'name' => 'URL de la série',
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'required' => true,
|
'required' => true,
|
||||||
'title' => 'URL d\'une série sans le https://www.free-telecharger.art/',
|
'title' => 'URL d\'une série sans le https://www.free-telecharger.fun/',
|
||||||
'pattern' => 'series.*\.html',
|
'pattern' => 'series.*\.html',
|
||||||
'exampleValue' => 'series-vf-hd/151432-wolf-saison-1-complete-web-dl-720p.html'
|
'exampleValue' => 'series-vf-hd/151432-wolf-saison-1-complete-web-dl-720p.html'
|
||||||
],
|
],
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
const CACHE_TIMEOUT = 3600;
|
const CACHE_TIMEOUT = 3600;
|
||||||
private string $showTitle;
|
private string $showTitle = '';
|
||||||
private string $showTechDetails;
|
private string $showTechDetails = '';
|
||||||
|
|
||||||
public function collectData()
|
public function collectData()
|
||||||
{
|
{
|
||||||
$html = getSimpleHTMLDOM(self::URI . $this->getInput('url'));
|
$html = getSimpleHTMLDOM(self::ALTERNATEURI . $this->getInput('url'));
|
||||||
|
|
||||||
// Find all block content of the page
|
// Find all block content of the page
|
||||||
$blocks = $html->find('div[class=block1]');
|
$blocks = $html->find('div[class=block1]');
|
||||||
|
Loading…
Reference in New Issue
Block a user