mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-18 22:31:42 +02:00
[bridges] migrate all bridges to an array based definition of parameters
see github issue 356 Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
@@ -8,24 +8,14 @@ class BooruprojectBridge extends BridgeAbstract{
|
||||
$this->uri = "http://booru.org/";
|
||||
$this->description = "Returns images from given page and booruproject instance (****.booru.org)";
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
{
|
||||
"name" : "instance (required)",
|
||||
"required" : true,
|
||||
"identifier" : "i"
|
||||
},
|
||||
{
|
||||
"name" : "page",
|
||||
"identifier" : "p"
|
||||
},
|
||||
{
|
||||
"name" : "tags",
|
||||
"identifier" : "t"
|
||||
}
|
||||
|
||||
|
||||
]';
|
||||
$this->parameters[] = array(
|
||||
'i'=>array(
|
||||
'name'=>'instance (required)',
|
||||
'required'=>true
|
||||
),
|
||||
'p'=>array('name'=>'page'),
|
||||
't'=>array('name'=>'tags')
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user