[ThePirateBayBridge] Add instructions

Added additional instructions for: 'username search' and 'category
search' next to instructions for 'keyword search'.

Changed variable name from underscore to camelCase.
This commit is contained in:
metaMMA 2017-08-26 12:28:52 -05:00 committed by logmanoriginal
parent 2595b5d7d8
commit 585379d47a

View file

@ -11,7 +11,7 @@ class ThePirateBayBridge extends BridgeAbstract {
const PARAMETERS = array( array(
'q' => array(
'name' => 'keywords, separated by semicolons',
'name' => 'keywords/username/category, separated by semicolons',
'exampleValue' => 'first list;second list;…',
'required' => true
),
@ -24,9 +24,9 @@ class ThePirateBayBridge extends BridgeAbstract {
'user' => 'usr'
)
),
'cat_check' => array(
'catCheck' => array(
'type' => 'checkbox',
'name' => 'Specify category for normal search ?',
'name' => 'Specify category for keyword search ?',
),
'cat' => array(
'name' => 'Category number',
@ -94,7 +94,7 @@ class ThePirateBayBridge extends BridgeAbstract {
return $timestamp;
}
$catBool = $this->getInput('cat_check');
$catBool = $this->getInput('catCheck');
if($catBool) {
$catNum = $this->getInput('cat');
}