mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-03 09:35:57 +02:00
[core + bridges] get rid of loadMetadata
if a bridge needs to modify some of the data that were initialized there, ::__construct() should be used instead. Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
parent
2301a12cc6
commit
de1b39c8e5
133 changed files with 1433 additions and 1848 deletions
|
@ -3,14 +3,13 @@ define('TWITCH_LIMIT', 10); // The default limit
|
|||
|
||||
class TwitchApiBridge extends BridgeAbstract{
|
||||
|
||||
public function loadMetadatas() {
|
||||
public $maintainer = "logmanoriginal";
|
||||
public $name = "Twitch API Bridge";
|
||||
public $uri = "http://www.twitch.tv";
|
||||
public $description = "Returns the newest broadcasts or highlights by channel name using the Twitch API (v3)";
|
||||
|
||||
$this->maintainer = "logmanoriginal";
|
||||
$this->name = "Twitch API Bridge";
|
||||
$this->uri = "http://www.twitch.tv";
|
||||
$this->description = "Returns the newest broadcasts or highlights by channel name using the Twitch API (v3)";
|
||||
|
||||
$this->parameters['Show Channel Videos']=array(
|
||||
public $parameters = array(
|
||||
'Show Channel Videos'=>array(
|
||||
'channel'=>array(
|
||||
'name'=>'Channel',
|
||||
'required'=>true
|
||||
|
@ -23,8 +22,8 @@ class TwitchApiBridge extends BridgeAbstract{
|
|||
'name'=>'Limit',
|
||||
'type'=>'number'
|
||||
)
|
||||
);
|
||||
}
|
||||
)
|
||||
);
|
||||
|
||||
public function collectData(){
|
||||
$param=$this->parameters[$this->queriedContext];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue