mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-01-16 21:58:21 +01:00
[ItchioBridge] add error for password pages (#3252)
This commit is contained in:
parent
4dc6158d5c
commit
ed36c8cbcd
@ -19,7 +19,10 @@ class ItchioBridge extends BridgeAbstract
|
|||||||
{
|
{
|
||||||
$url = $this->getInput('url');
|
$url = $this->getInput('url');
|
||||||
$html = getSimpleHTMLDOM($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;
|
$title = $html->find('.game_title', 0)->innertext;
|
||||||
|
|
||||||
$content = 'The following files are available to download:<br/>';
|
$content = 'The following files are available to download:<br/>';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user