1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-13 03:54:04 +02:00

bridges: remove redundant "or returnServerError" after getContents/getSimpleHTMLDom/getSimpleHTMLDomCached (#2398)

When fetching website contents, exceptions already raise on fetching error
This commit is contained in:
Eugene Molotov
2022-01-02 14:36:09 +05:00
committed by GitHub
parent fc51c6753d
commit 37cb4091d4
201 changed files with 262 additions and 513 deletions

View File

@@ -57,7 +57,7 @@ class ThePirateBayBridge extends BridgeAbstract {
'search/' .
rawurlencode($keywords) .
'/0/3/0'
) or returnServerError('Could not request TPB.');
);
} else {
$html = getSimpleHTMLDOM(
self::URI .
@@ -65,7 +65,7 @@ class ThePirateBayBridge extends BridgeAbstract {
rawurlencode($keywords) .
'/0/3/' .
rawurlencode($catNum)
) or returnServerError('Could not request TPB.');
);
}
break;
case 'cat':
@@ -74,7 +74,7 @@ class ThePirateBayBridge extends BridgeAbstract {
'browse/' .
rawurlencode($keywords) .
'/0/3/0'
) or returnServerError('Could not request TPB.');
);
break;
case 'usr':
$html = getSimpleHTMLDOM(
@@ -82,7 +82,7 @@ class ThePirateBayBridge extends BridgeAbstract {
'user/' .
rawurlencode($keywords) .
'/0/3/0'
) or returnServerError('Could not request TPB.');
);
break;
}