mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-21 17:15:25 +03:00
[ItchioBridge] add error for password pages (#3252)
This commit is contained in:
parent
4dc6158d5c
commit
ed36c8cbcd
1 changed files with 4 additions and 1 deletions
|
@ -19,7 +19,10 @@ class ItchioBridge extends BridgeAbstract
|
|||
{
|
||||
$url = $this->getInput('url');
|
||||
$html = getSimpleHTMLDOM($url);
|
||||
|
||||
// if the page is password protected, abort
|
||||
if ($html->find('.game_password_page', 0) !== null) {
|
||||
returnClientError('The requested page is password protected.');
|
||||
}
|
||||
$title = $html->find('.game_title', 0)->innertext;
|
||||
|
||||
$content = 'The following files are available to download:<br/>';
|
||||
|
|
Loading…
Reference in a new issue