mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-14 04:24:05 +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:
@@ -10,35 +10,23 @@ class DailymotionBridge extends BridgeAbstract{
|
||||
$this->uri = "https://www.dailymotion.com/";
|
||||
$this->description = "Returns the 5 newest videos by username/playlist or search";
|
||||
|
||||
$this->parameters["By username"] =
|
||||
'[
|
||||
{
|
||||
"name" : "username",
|
||||
"identifier" : "u"
|
||||
}
|
||||
]';
|
||||
$this->parameters["By username"] = array(
|
||||
'u'=>array('name'=>'username')
|
||||
);
|
||||
|
||||
$this->parameters["By playlist id"] =
|
||||
'[
|
||||
{
|
||||
"name" : "playlist id",
|
||||
"identifier" : "p",
|
||||
"type" : "text"
|
||||
}
|
||||
]';
|
||||
$this->parameters["By playlist id"] = array(
|
||||
'p'=>array(
|
||||
'name'=>'playlist id',
|
||||
'type'=>'text')
|
||||
);
|
||||
|
||||
$this->parameters["From search results"] =
|
||||
'[
|
||||
{
|
||||
"name" : "Search keyword",
|
||||
"identifier" : "s"
|
||||
},
|
||||
{
|
||||
"name" : "Page",
|
||||
"identifier" : "pa",
|
||||
"type" : "number"
|
||||
}
|
||||
]';
|
||||
$this->parameters["From search results"] = array(
|
||||
's'=>array('name'=>'Search keyword'),
|
||||
'pa'=>array(
|
||||
'name'=>'Page',
|
||||
'type'=>'number'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
function getMetadata($id) {
|
||||
|
Reference in New Issue
Block a user