diff --git a/bridges/AllocineFRBridge.php b/bridges/AllocineFRBridge.php
index 1b31c988..9799a70e 100644
--- a/bridges/AllocineFRBridge.php
+++ b/bridges/AllocineFRBridge.php
@@ -8,32 +8,20 @@ class AllocineFRBridge extends BridgeAbstract{
$this->uri = "http://www.allocine.fr";
$this->description = "Bridge for allocine.fr";
- $this->parameters[] =
- '[
- {
- "name" : "category",
- "identifier" : "category",
- "type" : "list",
- "required" : true,
- "exampleValue" : "Faux Raccord",
- "title" : "Select your category",
- "values" :
- [
- {
- "name" : "Faux Raccord",
- "value" : "faux-raccord"
- },
- {
- "name" : "Top 5",
- "value" : "top-5"
- },
- {
- "name" : "Tueurs En Serie",
- "value" : "tuers-en-serie"
- }
- ]
- }
- ]';
+ $this->parameters[] = array(
+ 'category'=>array(
+ 'name'=>'category',
+ 'type'=>'list',
+ 'required'=>true,
+ 'exampleValue'=>'Faux Raccord',
+ 'title'=>'Select your category',
+ 'values'=>array(
+ 'Faux Raccord'=>'faux-raccord',
+ 'Top 5'=>'top-5',
+ 'Tueurs En Serie'=>'tuers-en-serie'
+ )
+ )
+ );
}
public function collectData(array $params){
diff --git a/bridges/AnimeUltimeBridge.php b/bridges/AnimeUltimeBridge.php
index 7f2d4996..5c25a7dc 100644
--- a/bridges/AnimeUltimeBridge.php
+++ b/bridges/AnimeUltimeBridge.php
@@ -10,36 +10,18 @@ class AnimeUltimeBridge extends BridgeAbstract {
$this->uri = 'http://www.anime-ultime.net/';
$this->description = 'Returns the 10 newest releases posted on Anime-Ultime';
- $this->parameters[] =
- '[
- {
- "name" : "Type",
- "type" : "list",
- "identifier" : "type",
- "values" :
- [
- {
- "name" : "Everything",
- "value" : ""
-
- },
- {
- "name" : "Anime",
- "value" : "A"
-
- },
- {
- "name" : "Drama",
- "value" : "D"
- },
- {
- "name" : "Tokusatsu",
- "value" : "T"
-
- }
- ]
- }
- ]';
+ $this->parameters[] = array(
+ 'type'=>array(
+ 'name'=>'Type',
+ 'type'=>'list',
+ 'values'=>array(
+ 'Everything'=>'',
+ 'Anime'=>'A',
+ 'Drama'=>'D',
+ 'Tokusatsu'=>'T'
+ )
+ )
+ );
}
public function collectData(array $param) {
diff --git a/bridges/Arte7Bridge.php b/bridges/Arte7Bridge.php
index a3165610..6714dfd7 100644
--- a/bridges/Arte7Bridge.php
+++ b/bridges/Arte7Bridge.php
@@ -7,105 +7,42 @@ class Arte7Bridge extends BridgeAbstract{
$this->name = "Arte +7";
$this->uri = "http://www.arte.tv/";
$this->description = "Returns newest videos from ARTE +7";
- $this->parameters["Catégorie (Français)"] =
- '[
- {
- "type" : "list",
- "identifier" : "catfr",
- "name" : "Catégorie",
- "values" : [
- {
- "name" : "Toutes les vidéos (français)",
- "value" : "toutes-les-videos"
- },
- {
- "name" : "Actu & société",
- "value" : "actu-société"
- },
- {
- "name" : "Séries & fiction",
- "value" : "séries-fiction"
- },
- {
- "name" : "Cinéma",
- "value" : "cinéma"
- },
- {
- "name" : "Arts & spectacles classiques",
- "value" : "arts-spectacles-classiques"
- },
- {
- "name" : "Culture pop",
- "value" : "culture-pop"
- },
- {
- "name" : "Découverte",
- "value" : "découverte"
- },
- {
- "name" : "Histoire",
- "value" : "histoire"
- },
- {
- "name" : "Junior",
- "value" : "junior"
- }
+ $this->parameters["Catégorie (Français)"] = array(
+ 'catfr'=>array(
+ 'type'=>'list',
+ 'name'=>'Catégorie',
+ 'values'=>array(
+ 'Toutes les vidéos (français)'=>'toutes-les-videos',
+ 'Actu & société'=>'actu-société',
+ 'Séries & fiction'=>'séries-fiction',
+ 'Cinéma'=>'cinéma',
+ 'Arts & spectacles classiques'=>'arts-spectacles-classiques',
+ 'Culture pop'=>'culture-pop',
+ 'Découverte'=>'découverte',
+ 'Histoire'=>'histoire',
+ 'Junior'=>'junior'
- ]
+ )
+ )
+ );
-
- }
-
- ]';
- $this->parameters["Catégorie (Allemand)"] =
- '[
- {
- "type" : "list",
- "identifier" : "catde",
- "name" : "Catégorie",
- "values" : [
- {
- "name" : "Alle Videos (deutsch)",
- "value" : "alle-videos"
- },
- {
- "name" : "Aktuelles & Gesellschaft",
- "value" : "aktuelles-gesellschaft"
- },
- {
- "name" : "Fernsehfilme & Serien",
- "value" : "fernsehfilme-serien"
- },
- {
- "name" : "Kino",
- "value" : "kino"
- },
- {
- "name" : "Kunst & Kultur",
- "value" : "kunst-kultur"
- },
- {
- "name" : "Popkultur & Alternativ",
- "value" : "popkultur-alternativ"
- },
- {
- "name" : "Entdeckung",
- "value" : "entdeckung"
- },
- {
- "name" : "Geschichte",
- "value" : "geschichte"
- },
- {
- "name" : "Junior",
- "value" : "junior"
- }
- ]
-
-
- }
-
- ]';
+ $this->parameters["Catégorie (Allemand)"] = array(
+ 'catde'=>array(
+ 'type'=>'list',
+ 'name'=>'Catégorie',
+ 'values'=>array(
+ 'Alle Videos (deutsch)'=>'alle-videos',
+ 'Aktuelles & Gesellschaft'=>'aktuelles-gesellschaft',
+ 'Fernsehfilme & Serien'=>'fernsehfilme-serien',
+ 'Kino'=>'kino',
+ 'Kunst & Kultur'=>'kunst-kultur',
+ 'Popkultur & Alternativ'=>'popkultur-alternativ',
+ 'Entdeckung'=>'entdeckung',
+ 'Geschichte'=>'geschichte',
+ 'Junior'=>'junior'
+ )
+ )
+ );
}
diff --git a/bridges/AskfmBridge.php b/bridges/AskfmBridge.php
index 6086d1ff..d69e366b 100644
--- a/bridges/AskfmBridge.php
+++ b/bridges/AskfmBridge.php
@@ -8,13 +8,11 @@ class AskfmBridge extends BridgeAbstract{
$this->uri = "http://ask.fm/";
$this->description = "Returns answers from an Ask.fm user";
- $this->parameters["Ask.fm username"] =
- '[
- {
- "name" : "Username",
- "identifier" : "u"
- }
- ]';
+ $this->parameters["Ask.fm username"] = array(
+ 'u'=>array(
+ 'name'=>'Username'
+ )
+ );
}
public function collectData(array $param){
diff --git a/bridges/BandcampBridge.php b/bridges/BandcampBridge.php
index 61c3fc02..9d9bf60d 100644
--- a/bridges/BandcampBridge.php
+++ b/bridges/BandcampBridge.php
@@ -10,15 +10,12 @@ class BandcampBridge extends BridgeAbstract{
$this->uri = "http://bandcamp.com/";
$this->description = "New bandcamp release by tag";
- $this->parameters[] =
- '[
- {
- "name" : "tag",
- "type" : "text",
- "identifier" : "tag"
-
- }
- ]';
+ $this->parameters[] = array(
+ 'tag'=>array(
+ 'name'=>'tag',
+ 'type'=>'text'
+ )
+ );
}
public function collectData(array $param){
diff --git a/bridges/BooruprojectBridge.php b/bridges/BooruprojectBridge.php
index 1a572994..39ed3f78 100644
--- a/bridges/BooruprojectBridge.php
+++ b/bridges/BooruprojectBridge.php
@@ -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')
+ );
}
diff --git a/bridges/CNETBridge.php b/bridges/CNETBridge.php
index f905bdd5..dee0a2a9 100644
--- a/bridges/CNETBridge.php
+++ b/bridges/CNETBridge.php
@@ -10,13 +10,9 @@ class CNETBridge extends BridgeAbstract {
$this->uri = 'http://www.cnet.com/';
$this->description = 'Returns the newest articles.
You may specify a topic found in some section URLs, else all topics are selected.';
- $this->parameters[] =
- '[
- {
- "name" : "Topic name",
- "identifier" : "topic"
- }
- ]';
+ $this->parameters[] = array(
+ 'topic'=>array('name'=>'Topic name')
+ );
}
public function collectData(array $param) {
diff --git a/bridges/CastorusBridge.php b/bridges/CastorusBridge.php
index 7ab2113b..bfb8b0af 100644
--- a/bridges/CastorusBridge.php
+++ b/bridges/CastorusBridge.php
@@ -6,29 +6,25 @@ class CastorusBridge extends BridgeAbstract {
$this->uri = 'http://www.castorus.com';
$this->description = "Returns the latest changes";
- $this->parameters["Get latest changes"] = '[]';
- $this->parameters["Get latest changes via ZIP code"] =
- '[
- {
- "name": "ZIP code",
- "identifier" : "zip",
- "type" : "text",
- "required" : true,
- "exampleValue" : "74910, 74",
- "title" : "Insert ZIP code (complete or partial)"
- }
- ]';
- $this->parameters["Get latest changes via city name"] =
- '[
- {
- "name": "City name",
- "identifier" : "city",
- "type" : "text",
- "required" : true,
- "exampleValue" : "Seyssel, Seys",
- "title" : "Insert city name (complete or partial)"
- }
- ]';
+ $this->parameters["Get latest changes"] = array();
+ $this->parameters["Get latest changes via ZIP code"] = array(
+ 'zip'=>array(
+ 'name'=>'ZIP code',
+ 'type'=>'text',
+ 'required'=>true,
+ 'exampleValue'=>'74910, 74',
+ 'title'=>'Insert ZIP code (complete or partial)'
+ )
+ );
+ $this->parameters["Get latest changes via city name"] = array(
+ 'city'=>array(
+ 'name'=>'City name',
+ 'type'=>'text',
+ 'required'=>true,
+ 'exampleValue'=>'Seyssel, Seys',
+ 'title'=>'Insert city name (complete or partial)'
+ )
+ );
}
// Extracts the tile from an actitiy
diff --git a/bridges/CpasbienBridge.php b/bridges/CpasbienBridge.php
index 2c578fbe..77720375 100644
--- a/bridges/CpasbienBridge.php
+++ b/bridges/CpasbienBridge.php
@@ -25,15 +25,13 @@ class CpasbienBridge extends HttpCachingBridgeAbstract{
$this->uri = "http://www.cpasbien.io";
$this->description = "Returns latest torrents from a request query";
- $this->parameters[] =
- '[
- {
- "name" : "Search",
- "identifier" : "q",
- "required" : true,
- "title" : "Type your search"
- }
- ]';
+ $this->parameters[] = array(
+ 'q'=>array(
+ 'name'=>'Search',
+ 'required'=>true,
+ 'title'=>'Type your search'
+ )
+ );
}
diff --git a/bridges/CryptomeBridge.php b/bridges/CryptomeBridge.php
index 888b1042..f9981328 100644
--- a/bridges/CryptomeBridge.php
+++ b/bridges/CryptomeBridge.php
@@ -8,15 +8,13 @@ class CryptomeBridge extends BridgeAbstract{
$this->uri = "http://cryptome.org/";
$this->description = "Returns the N most recent documents.";
- $this->parameters[] =
- '[
- {
- "name" : "number of elements",
- "identifier" : "n",
- "type" : "number",
- "exampleValue" : "10"
- }
- ]';
+ $this->parameters[] = array(
+ 'n'=>array(
+ 'name'=>'number of elements',
+ 'type'=>'number',
+ 'exampleValue'=>10
+ )
+ );
}
diff --git a/bridges/DailymotionBridge.php b/bridges/DailymotionBridge.php
index de837ad1..351f56e2 100644
--- a/bridges/DailymotionBridge.php
+++ b/bridges/DailymotionBridge.php
@@ -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) {
diff --git a/bridges/DanbooruBridge.php b/bridges/DanbooruBridge.php
index 3de45734..997d9639 100644
--- a/bridges/DanbooruBridge.php
+++ b/bridges/DanbooruBridge.php
@@ -8,18 +8,10 @@ class DanbooruBridge extends BridgeAbstract{
$this->uri = "http://donmai.us/";
$this->description = "Returns images from given page";
- $this->parameters[] =
- '[
- {
- "name" : "page",
- "identifier" : "p"
- },
- {
- "name" : "tags",
- "identifier" : "t"
- }
- ]';
-
+ $this->parameters[] = array(
+ 'p'=>array('name'=>'page'),
+ 't'=>array('name'=>'tags')
+ );
}
public function collectData(array $param){
diff --git a/bridges/DauphineLibereBridge.php b/bridges/DauphineLibereBridge.php
index 8e2db946..075879ef 100644
--- a/bridges/DauphineLibereBridge.php
+++ b/bridges/DauphineLibereBridge.php
@@ -8,76 +8,29 @@ class DauphineLibereBridge extends BridgeAbstract {
$this->uri = "http://www.ledauphine.com/";
$this->description = "Returns the newest articles.";
- $this->parameters[] =
- '[
- {
- "name" : "Catégorie de l\'article",
- "identifier" : "u",
- "type" : "list",
- "values" : [
- {
- "name" : "À la une",
- "value" : ""
- },
- {
- "name" : "France Monde",
- "value" : "france-monde"
- },
- {
- "name" : "Faits Divers",
- "value" : "faits-divers"
- },
- {
- "name" : "Économie et Finance",
- "value" : "economie-et-finance"
- },
- {
- "name" : "Politique",
- "value" : "politique"
- },
- {
- "name" : "Sport",
- "value" : "sport"
- },
- {
- "name" : "Ain",
- "value" : "ain"
- },
- {
- "name" : "Alpes-de-Haute-Provence",
- "value" : "haute-provence"
- },
- {
- "name" : "Hautes-Alpes",
- "value" : "hautes-alpes"
- },
- {
- "name" : "Ardèche",
- "value" : "ardeche"
- },
- {
- "name" : "Drôme",
- "value" : "drome"
- },
- {
- "name" : "Isère Sud",
- "value" : "isere-sud"
- },
- {
- "name" : "Savoie",
- "value" : "savoie"
- },
- {
- "name" : "Haute-Savoie",
- "value" : "haute-savoie"
- },
- {
- "name" : "Vaucluse",
- "value" : "vaucluse"
- }
- ]
- }
- ]';
+ $this->parameters[] = array(
+ 'u'=>array(
+ 'name'=>'Catégorie de l\'article',
+ 'type'=>'list',
+ 'values'=>array(
+ 'À la une'=>'',
+ 'France Monde'=>'france-monde',
+ 'Faits Divers'=>'faits-divers',
+ 'Économie et Finance'=>'economie-et-finance',
+ 'Politique'=>'politique',
+ 'Sport'=>'sport',
+ 'Ain'=>'ain',
+ 'Alpes-de-Haute-Provence'=>'haute-provence',
+ 'Hautes-Alpes'=>'hautes-alpes',
+ 'Ardèche'=>'ardeche',
+ 'Drôme'=>'drome',
+ 'Isère Sud'=>'isere-sud',
+ 'Savoie'=>'savoie',
+ 'Haute-Savoie'=>'haute-savoie',
+ 'Vaucluse'=>'vaucluse'
+ )
+ )
+ );
}
private function ExtractContent($url, $context) {
diff --git a/bridges/DemoBridge.php b/bridges/DemoBridge.php
index 55d1d621..0ea65d03 100644
--- a/bridges/DemoBridge.php
+++ b/bridges/DemoBridge.php
@@ -8,46 +8,31 @@ class DemoBridge extends BridgeAbstract{
$this->uri = "http://github.com/sebsauvage/rss-bridge";
$this->description = "Bridge used for demos";
- $this->parameters['testCheckbox'] =
- '[
- {
- "type" : "checkbox",
- "identifier" : "testCheckbox",
- "name" : "test des checkbox"
- }
+ $this->parameters['testCheckbox'] = array(
+ 'testCheckbox'=>array(
+ 'type'=>'checkbox',
+ 'name'=>'test des checkbox'
+ )
+ );
- ]';
-
- $this->parameters['testList'] =
- '[
- {
- "type" : "list",
- "identifier" : "testList",
- "name" : "test des listes",
- "values" : [
- {
- "name" : "Test",
- "value" : "test"
- },
- {
- "name" : "Test 2",
- "value" : "test2"
- }
- ]
- }
- ]';
- $this->parameters['testNumber'] =
- '[
- {
- "type" : "number",
- "identifier" : "testNumber",
- "name" : "test des numéros",
- "exampleValue" : "1515632"
-
- }
-
- ]';
+ $this->parameters['testList'] = array(
+ 'testList'=>array(
+ 'type'=>'list',
+ 'name'=>'test des listes',
+ 'values'=>array(
+ 'Test'=>'test',
+ 'Test 2'=>'test2'
+ )
+ )
+ );
+ $this->parameters['testNumber'] = array(
+ 'testNumber'=>array(
+ 'type'=>'number',
+ 'name'=>'test des numéros',
+ 'exampleValue'=>'1515632'
+ )
+ );
}
public function collectData(array $param){
diff --git a/bridges/DollbooruBridge.php b/bridges/DollbooruBridge.php
index 54a4d449..ca3ba745 100644
--- a/bridges/DollbooruBridge.php
+++ b/bridges/DollbooruBridge.php
@@ -9,18 +9,13 @@ class DollbooruBridge extends BridgeAbstract{
$this->description = "Returns images from given page";
- $this->parameters[] =
- '[
- {
- "name" : "page",
- "type" : "number",
- "identifier" : "p"
- },
- {
- "name" : "tags",
- "identifier" : "t"
- }
- ]';
+ $this->parameters[] = array(
+ 'p'=>array(
+ 'name'=>'page',
+ 'type'=>'number'
+ ),
+ 't'=>array('name'=>'tags')
+ );
}
public function collectData(array $param){
diff --git a/bridges/DuckDuckGoBridge.php b/bridges/DuckDuckGoBridge.php
index ae6459d2..7f5d2d43 100644
--- a/bridges/DuckDuckGoBridge.php
+++ b/bridges/DuckDuckGoBridge.php
@@ -8,14 +8,11 @@ class DuckDuckGoBridge extends BridgeAbstract{
$this->uri = "https://duckduckgo.com/";
$this->description = "Returns most recent results from DuckDuckGo.";
- $this->parameters[] =
- '[
- {
- "name" : "keyword",
- "identifier" : "u",
- "required":true
- }
- ]';
+ $this->parameters[] = array(
+ 'u'=>array(
+ 'name'=>'keyword',
+ 'required'=>true)
+ );
}
public function collectData(array $param){
diff --git a/bridges/EZTVBridge.php b/bridges/EZTVBridge.php
index b0e4ac16..813e70f4 100644
--- a/bridges/EZTVBridge.php
+++ b/bridges/EZTVBridge.php
@@ -8,16 +8,13 @@ class EZTVBridge extends BridgeAbstract{
$this->uri = "https://eztv.ch/";
$this->description = "Returns list of *recent* torrents for a specific show on EZTV. Get showID from URLs in https://eztv.ch/shows/showID/show-full-name.";
- $this->parameters[] =
- '[
- {
- "name" : "Show ids",
- "identifier" : "i",
- "exampleValue" : "showID1,showID2,...",
- "required": true
- }
- ]';
-
+ $this->parameters[] = array(
+ 'i'=>array(
+ 'name'=>'Show ids',
+ 'exampleValue'=>'showID1,showID2,…',
+ 'required'=>true
+ )
+ );
}
public function collectData(array $param){
diff --git a/bridges/ElsevierBridge.php b/bridges/ElsevierBridge.php
index cc3e6188..aa4b486f 100644
--- a/bridges/ElsevierBridge.php
+++ b/bridges/ElsevierBridge.php
@@ -7,16 +7,14 @@ class ElsevierBridge extends BridgeAbstract{
$this->uri = 'http://www.journals.elsevier.com';
$this->description = 'Returns the recent articles published in Elsevier journals';
- $this->parameters[] =
- '[
- {
- "name" : "Journal name",
- "identifier" : "j",
- "required" : true,
- "exampleValue" : "academic-pediatrics",
- "title" : "Insert html-part of your journal"
- }
- ]';
+ $this->parameters[] = array(
+ 'j'=>array(
+ 'name'=>'Journal name',
+ 'required'=>true,
+ 'exampleValue'=>'academic-pediactrics',
+ 'title'=>'Insert html-part of your journal'
+ )
+ );
}
// Extracts the list of names from an article as string
diff --git a/bridges/FacebookBridge.php b/bridges/FacebookBridge.php
index 4feb0bf4..da40eec9 100644
--- a/bridges/FacebookBridge.php
+++ b/bridges/FacebookBridge.php
@@ -8,14 +8,12 @@ class FacebookBridge extends BridgeAbstract{
$this->uri = "http://www.facebook.com/";
$this->description = "Input a page title or a profile log. For a profile log, please insert the parameter as follow : myExamplePage/132621766841117";
- $this->parameters[] =
- '[
- {
- "name" : "Username",
- "identifier" : "u",
- "required" : true
- }
- ]';
+ $this->parameters[] =array(
+ 'u'=>array(
+ 'name'=>'Username',
+ 'required'=>true
+ )
+ );
}
public function collectData(array $param) {
diff --git a/bridges/FlickrTagBridge.php b/bridges/FlickrTagBridge.php
index 59a9cd98..7ec7c268 100644
--- a/bridges/FlickrTagBridge.php
+++ b/bridges/FlickrTagBridge.php
@@ -8,21 +8,13 @@ class FlickrTagBridge extends BridgeAbstract{
$this->uri = "http://www.flickr.com/";
$this->description = "Returns the tagged or user images from Flickr";
- $this->parameters["By keyword"] =
- '[
- {
- "name" : "Keyword",
- "identifier" : "q"
- }
- ]';
+ $this->parameters["By keyword"] = array(
+ 'q'=>array('name'=>'keyword')
+ );
- $this->parameters["By username"] =
- '[
- {
- "name" : "Username",
- "identifier" : "u"
- }
- ]';
+ $this->parameters["By username"] = array(
+ 'u'=>array('name'=>'Username')
+ );
}
public function collectData(array $param){
diff --git a/bridges/FourchanBridge.php b/bridges/FourchanBridge.php
index 3ca63597..abc6b6d1 100644
--- a/bridges/FourchanBridge.php
+++ b/bridges/FourchanBridge.php
@@ -8,13 +8,9 @@ class FourchanBridge extends BridgeAbstract{
$this->uri = "https://www.4chan.org/";
$this->description = "Returns posts from the specified thread";
- $this->parameters[] =
- '[
- {
- "name" : "Thread URL",
- "identifier" : "t"
- }
- ]';
+ $this->parameters[] = array(
+ 't'=>array('name'=>'Thread URL')
+ );
}
diff --git a/bridges/Freenews.php b/bridges/Freenews.php
index 0ebe3598..c4ec7fbc 100644
--- a/bridges/Freenews.php
+++ b/bridges/Freenews.php
@@ -9,19 +9,15 @@ class Freenews extends RssExpander {
$this->uri = "http://freenews.fr";
$this->description = "Un site d'actualité pour les freenautes (mais ne parlant pas que de la freebox). Ne rentrez pas d'id si vous voulez accéder aux actualités générales.";
- $this->parameters[] =
- '[
- {
- "name" : "Id de la rubrique (sans le \'-\')",
- "identifier" : "id"
- }
- ]';
+ $this->parameters[] = array(
+ 'id'=>array('name'=>'Id de la rubrique (sans le \'-\')')
+ );
}
public function collectData(array $param){
parent::collectExpandableDatas($param, FREENEWS_RSS);
}
-
+
protected function parseRSSItem($newsItem) {
$item = new Item();
$item->title = trim($newsItem->title);
diff --git a/bridges/FuturaSciencesBridge.php b/bridges/FuturaSciencesBridge.php
index c15e1b12..54f372f6 100644
--- a/bridges/FuturaSciencesBridge.php
+++ b/bridges/FuturaSciencesBridge.php
@@ -8,104 +8,77 @@ class FuturaSciencesBridge extends BridgeAbstract {
$this->uri = 'http://www.futura-sciences.com/';
$this->description = 'Returns the newest articles.';
- $this->parameters[] =
- '[
- {
- "name" : "Feed",
- "type" : "list",
- "identifier" : "feed",
- "values" :
- [
- { "name" : "---- Select ----", "value" : "" },
-
- { "name" : "", "value" : "" },
- { "name" : "Les flux multi-magazines", "value" : "" },
-
- { "name" : " Les dernières actualités de Futura-Sciences", "value" : "actualites" },
- { "name" : " Les dernières définitions de Futura-Sciences", "value" : "definitions" },
- { "name" : " Les dernières photos de Futura-Sciences", "value" : "photos" },
- { "name" : " Les dernières questions - réponses de Futura-Sciences", "value" : "questions-reponses" },
- { "name" : " Les derniers dossiers de Futura-Sciences", "value" : "dossiers" },
-
- { "name" : "", "value" : "" },
- { "name" : "Les flux Services", "value" : "" },
-
- { "name" : " Les cartes virtuelles de Futura-Sciences", "value" : "services/cartes-virtuelles" },
- { "name" : " Les fonds d\'écran de Futura-Sciences", "value" : "services/fonds-ecran" },
-
- { "name" : "", "value" : "" },
- { "name" : "Les flux Santé", "value" : "" },
-
- { "name" : " Les dernières actualités de Futura-Santé", "value" : "sante/actualites" },
- { "name" : " Les dernières définitions de Futura-Santé", "value" : "sante/definitions" },
- { "name" : " Les dernières questions-réponses de Futura-Santé", "value" : "sante/questions-reponses" },
- { "name" : " Les derniers dossiers de Futura-Santé", "value" : "sante/dossiers" },
-
- { "name" : "", "value" : "" },
- { "name" : "Les flux High-Tech", "value" : "" },
-
- { "name" : " Les dernières actualités de Futura High-Tech", "value" : "high-tech/actualites" },
- { "name" : " Les dernières astuces de Futura High-Tech", "value" : "high-tech/questions-reponses" },
- { "name" : " Les dernières définitions de Futura High-Tech", "value" : "high-tech/definitions" },
- { "name" : " Les derniers dossiers de Futura High-Tech", "value" : "high-tech/dossiers" },
-
- { "name" : "", "value" : "" },
- { "name" : "Les flux Espace", "value" : "" },
-
- { "name" : " Les dernières actualités de Futura-Espace", "value" : "espace/actualites" },
- { "name" : " Les dernières définitions de Futura-Espace", "value" : "espace/definitions" },
- { "name" : " Les dernières questions-réponses de Futura-Espace", "value" : "espace/questions-reponses" },
- { "name" : " Les derniers dossiers de Futura-Espace", "value" : "espace/dossiers" },
-
- { "name" : "", "value" : "" },
- { "name" : "Les flux Environnement", "value" : "" },
-
- { "name" : " Les dernières actualités de Futura-Environnement", "value" : "environnement/actualites" },
- { "name" : " Les dernières définitions de Futura-Environnement", "value" : "environnement/definitions" },
- { "name" : " Les dernières questions - réponses de Futura-Environnement", "value" : "environnement/questions-reponses" },
- { "name" : " Les derniers dossiers de Futura-Environnement", "value" : "environnement/dossiers" },
-
- { "name" : "", "value" : "" },
- { "name" : "Les flux Maison", "value" : "" },
-
- { "name" : " Les dernières actualités de Futura-Maison", "value" : "maison/actualites" },
- { "name" : " Les dernières astuces de Futura-Maison", "value" : "maison/questions-reponses" },
- { "name" : " Les dernières définitions de Futura-Maison", "value" : "maison/definitions" },
- { "name" : " Les derniers dossiers de Futura-Maison", "value" : "maison/dossiers" },
-
- { "name" : "", "value" : "" },
- { "name" : "Les flux Nature", "value" : "" },
-
- { "name" : " Les dernières actualités de Futura-Nature", "value" : "nature/actualites" },
- { "name" : " Les dernières définitions de Futura-Nature", "value" : "nature/definitions" },
- { "name" : " Les dernières questions-réponses de Futura-Nature", "value" : "nature/questions-reponses" },
- { "name" : " Les derniers dossiers de Futura-Nature", "value" : "nature/dossiers" },
-
- { "name" : "", "value" : "" },
- { "name" : "Les flux Terre", "value" : "" },
-
- { "name" : " Les dernières actualités de Futura-Terre", "value" : "terre/actualites" },
- { "name" : " Les dernières définitions de Futura-Terre", "value" : "terre/definitions" },
- { "name" : " Les dernières questions-réponses de Futura-Terre", "value" : "terre/questions-reponses" },
- { "name" : " Les derniers dossiers de Futura-Terre", "value" : "terre/dossiers" },
-
- { "name" : "", "value" : "" },
- { "name" : "Les flux Matière", "value" : "" },
-
- { "name" : " Les dernières actualités de Futura-Matière", "value" : "matiere/actualites" },
- { "name" : " Les dernières définitions de Futura-Matière", "value" : "matiere/definitions" },
- { "name" : " Les dernières questions-réponses de Futura-Matière", "value" : "matiere/questions-reponses" },
- { "name" : " Les derniers dossiers de Futura-Matière", "value" : "matiere/dossiers" },
-
- { "name" : "", "value" : "" },
- { "name" : "Les flux Mathématiques", "value" : "" },
-
- { "name" : " Les dernières actualités de Futura-Mathématiques", "value" : "mathematiques/actualites" },
- { "name" : " Les derniers dossiers de Futura-Mathématiques", "value" : "mathematiques/dossiers" }
- ]
- }
- ]';
-
+ $this->parameters[] = array(
+ 'feed'=> array(
+ 'name'=>'Feed',
+ 'type'=>'list',
+ 'values'=>array(
+ 'Les flux multi-magazines'=>array(
+ 'Les dernières actualités de Futura-Sciences'=>'actualites',
+ 'Les dernières définitions de Futura-Sciences'=>'definitions',
+ 'Les dernières photos de Futura-Sciences'=>'photos',
+ 'Les dernières questions - réponses de Futura-Sciences'=>'questions-reponses',
+ 'Les derniers dossiers de Futura-Sciences'=>'dossiers'
+ ),
+ 'Les flux Services'=> array(
+ 'Les cartes virtuelles de Futura-Sciences'=>'services/cartes-virtuelles',
+ 'Les fonds d\'écran de Futura-Sciences'=>'services/fonds-ecran'
+ ),
+ 'Les flux Santé'=>array(
+ 'Les dernières actualités de Futura-Santé'=>'sante/actualites',
+ 'Les dernières définitions de Futura-Santé'=>'sante/definitions',
+ 'Les dernières questions-réponses de Futura-Santé'=>'sante/question-reponses',
+ 'Les derniers dossiers de Futura-Santé'=>'sante/dossiers'
+ ),
+ 'Les flux High-Tech'=>array(
+ 'Les dernières actualités de Futura-High-Tech'=>'high-tech/actualites',
+ 'Les dernières astuces de Futura-High-Tech'=>'high-tech/question-reponses',
+ 'Les dernières définitions de Futura-High-Tech'=>'high-tech/definitions',
+ 'Les derniers dossiers de Futura-High-Tech'=>'high-tech/dossiers'
+ ),
+ 'Les flux Espace'=>array(
+ 'Les dernières actualités de Futura-Espace'=>'espace/actualites',
+ 'Les dernières définitions de Futura-Espace'=>'espace/definitions',
+ 'Les dernières questions-réponses de Futura-Espace'=>'espace/question-reponses',
+ 'Les derniers dossiers de Futura-Espace'=>'espace/dossiers'
+ ),
+ 'Les flux Environnement'=>array(
+ 'Les dernières actualités de Futura-Environnement'=>'environnement/actualites',
+ 'Les dernières définitions de Futura-Environnement'=>'environnement/definitions',
+ 'Les dernières questions-réponses de Futura-Environnement'=>'environnement/question-reponses',
+ 'Les derniers dossiers de Futura-Environnement'=>'environnement/dossiers'
+ ),
+ 'Les flux Maison'=>array(
+ 'Les dernières actualités de Futura-Maison'=>'maison/actualites',
+ 'Les dernières astuces de Futura-Maison'=>'maison/question-reponses',
+ 'Les dernières définitions de Futura-Maison'=>'maison/definitions',
+ 'Les derniers dossiers de Futura-Maison'=>'maison/dossiers'
+ ),
+ 'Les flux Nature'=>array(
+ 'Les dernières actualités de Futura-Nature'=>'nature/actualites',
+ 'Les dernières définitions de Futura-Nature'=>'nature/definitions',
+ 'Les dernières questions-réponses de Futura-Nature'=>'nature/question-reponses',
+ 'Les derniers dossiers de Futura-Nature'=>'nature/dossiers'
+ ),
+ 'Les flux Terre'=>array(
+ 'Les dernières actualités de Futura-Terre'=>'terre/actualites',
+ 'Les dernières définitions de Futura-Terre'=>'terre/definitions',
+ 'Les dernières questions-réponses de Futura-Terre'=>'terre/question-reponses',
+ 'Les derniers dossiers de Futura-Terre'=>'terre/dossiers'
+ ),
+ 'Les flux Matière'=>array(
+ 'Les dernières actualités de Futura-Matière'=>'matiere/actualites',
+ 'Les dernières définitions de Futura-Matière'=>'matiere/definitions',
+ 'Les dernières questions-réponses de Futura-Matière'=>'matiere/question-reponses',
+ 'Les derniers dossiers de Futura-Matière'=>'matiere/dossiers'
+ ),
+ 'Les flux Mathématiques'=>array(
+ 'Les dernières actualités de Futura-Mathématiques'=>'mathematiques/actualites',
+ 'Les derniers dossiers de Futura-Mathématiques'=>'mathematiques/dossiers'
+ )
+ )
+ )
+ );
}
public function collectData(array $param) {
diff --git a/bridges/GBAtempBridge.php b/bridges/GBAtempBridge.php
index 5cad1008..868393c2 100644
--- a/bridges/GBAtempBridge.php
+++ b/bridges/GBAtempBridge.php
@@ -10,33 +10,18 @@ class GBAtempBridge extends BridgeAbstract {
$this->uri = 'http://gbatemp.net/';
$this->description = 'GBAtemp is a user friendly underground video game community.';
- $this->parameters[] =
- '[
- {
- "name" : "Type",
- "type" : "list",
- "identifier" : "type",
- "values" :
- [
- {
- "name" : "News",
- "value" : "N"
- },
- {
- "name" : "Reviews",
- "value" : "R"
- },
- {
- "name" : "Tutorials",
- "value" : "T"
- },
- {
- "name" : "Forum",
- "value" : "F"
- }
- ]
- }
- ]';
+ $this->parameters[] = array(
+ 'type'=>array(
+ 'name'=>'Type',
+ 'type'=>'list',
+ 'values'=>array(
+ 'News'=>'N',
+ 'Reviews'=>'R',
+ 'Tutorials'=>'T',
+ 'Forum'=>'F'
+ )
+ )
+ );
}
private function ExtractFromDelimiters($string, $start, $end) {
diff --git a/bridges/Gawker.php b/bridges/Gawker.php
index f8ea8441..d03c20de 100644
--- a/bridges/Gawker.php
+++ b/bridges/Gawker.php
@@ -11,13 +11,9 @@ class Gawker extends RssExpander{
$this->uri = "http://feeds.gawker.com/";
$this->description = "A bridge allowing access to any of the numerous Gawker media blogs (Lifehacker, deadspin, Kotaku, Jezebel, and so on. Notice you have to give its id to find the RSS stream in gawker maze";
- $this->parameters[] =
- '[
- {
- "name" : "site id to put in uri between feeds.gawker.com and /full .. which is obviously not full AT ALL",
- "identifier" : "site"
- }
- ]';
+ $this->parameters[] = array(
+ 'site'=>array('name'=>'site id to put in uri between feeds.gawker.com and /full .. which is obviously not full AT ALL')
+ );
}
@@ -35,7 +31,7 @@ class Gawker extends RssExpander{
// $this->message("loading feed from ".$this->getURI());
parent::collectExpandableDatas($param, $url);
}
-
+
protected function parseRSSItem($newsItem) {
$item = new Item();
$item->uri = trim($newsItem->link);
diff --git a/bridges/GelbooruBridge.php b/bridges/GelbooruBridge.php
index c6c6a627..bd73bbad 100644
--- a/bridges/GelbooruBridge.php
+++ b/bridges/GelbooruBridge.php
@@ -8,18 +8,13 @@ class GelbooruBridge extends BridgeAbstract{
$this->uri = "http://gelbooru.com/";
$this->description = "Returns images from given page";
- $this->parameters[] =
- '[
- {
- "name" : "page",
- "identifier" : "p",
- "type" : "number"
- },
- {
- "name" : "tags",
- "identifier" : "t"
- }
- ]';
+ $this->parameters[] = array(
+ 'p'=>array(
+ 'name'=>'page',
+ 'type'=>'number'
+ ),
+ 't'=>array('name'=>'tags')
+ );
}
diff --git a/bridges/GiphyBridge.php b/bridges/GiphyBridge.php
index 82dbc8b1..61548c5a 100644
--- a/bridges/GiphyBridge.php
+++ b/bridges/GiphyBridge.php
@@ -10,22 +10,16 @@ class GiphyBridge extends BridgeAbstract{
$this->uri = "http://giphy.com/";
$this->description = "Bridge for giphy.com";
- $this->parameters["By tag"] =
- '[
- {
- "name" : "search tag",
- "identifier" : "s"
- }
- ]';
+ $this->parameters["By tag"] = array(
+ 's'=>array('name'=>'search tag')
+ );
- $this->parameters["Without tag"] =
- '[
- {
- "name" : "max number of returned items",
- "type" : "number",
- "identifier" : "n"
- }
- ]';
+ $this->parameters["Without tag"] = array(
+ 'n'=>array(
+ 'name'=>'max number of returned items',
+ 'type'=>'number'
+ )
+ );
}
public function collectData(array $param){
diff --git a/bridges/GithubIssueBridge.php b/bridges/GithubIssueBridge.php
index 33fdc6b3..e5358988 100644
--- a/bridges/GithubIssueBridge.php
+++ b/bridges/GithubIssueBridge.php
@@ -13,22 +13,21 @@ class GithubIssueBridge extends BridgeAbstract{
$this->uri = '';
$this->description = 'Returns the comments of a github project issue';
- $this->parameters[]=
- '[
- {
- "name" : "User name",
- "identifier" : "u"
- },
- {
- "name" : "Project name",
- "identifier" : "p"
- },
- {
- "name" : "Issue number",
- "identifier" : "i"
- }
-
- ]';
+ $this->parameters[]=array (
+ 'u'=>array(
+ 'name'=>'User name',
+ 'required'=>true
+ ),
+ 'p'=>array(
+ 'name'=>'Project name',
+ 'required'=>true
+ ),
+ 'i'=>array(
+ 'name'=>'Issue number',
+ 'type'=>'number',
+ 'required'=>true
+ )
+ );
}
public function collectData(array $param){
diff --git a/bridges/GitlabCommitsBridge.php b/bridges/GitlabCommitsBridge.php
index 69f0be63..85c18b8f 100644
--- a/bridges/GitlabCommitsBridge.php
+++ b/bridges/GitlabCommitsBridge.php
@@ -13,30 +13,24 @@ class GitlabCommitsBridge extends BridgeAbstract{
$this->uri = '';
$this->description = 'Returns the commits of a project hosted on a gitlab instance';
- $this->parameters[] =
- '[
- {
- "name" : "Base URI",
- "identifier" : "uri",
- "defaultValue":"https://gitlab.com"
- },
- {
- "name" : "User name",
- "identifier" : "u",
- "required": true
- },
- {
- "name" : "Project name",
- "identifier" : "p",
- "required":true
- },
- {
- "name" : "Project branch",
- "identifier" : "b",
- "defaultValue":"master"
- }
-
- ]';
+ $this->parameters[] = array(
+ 'uri'=>array(
+ 'name'=>'Base URI',
+ 'defaultValue'=>'https://gitlab.com'
+ ),
+ 'u'=>array(
+ 'name'=>'User name',
+ 'required'=>true
+ ),
+ 'p'=>array(
+ 'name'=>'Project name',
+ 'required'=>true
+ ),
+ 'b'=>array(
+ 'name'=>'Project branch',
+ 'defaultValue'=>'master'
+ )
+ );
}
public function collectData(array $param){
diff --git a/bridges/GooglePlusPostBridge.php b/bridges/GooglePlusPostBridge.php
index 0e2470b4..6f106ee6 100644
--- a/bridges/GooglePlusPostBridge.php
+++ b/bridges/GooglePlusPostBridge.php
@@ -11,13 +11,9 @@ class GooglePlusPostBridge extends BridgeAbstract
$this->uri = "http://plus.google.com/";
$this->description = "Returns user public post (without API).";
- $this->parameters[] =
- '[
- {
- "name" : "username or Id",
- "identifier" : "username"
- }
- ]';
+ $this->parameters[] = array(
+ 'username'=>array('name'=>'username or Id')
+ );
}
diff --git a/bridges/GoogleSearchBridge.php b/bridges/GoogleSearchBridge.php
index f3dfbb0f..0e9da844 100644
--- a/bridges/GoogleSearchBridge.php
+++ b/bridges/GoogleSearchBridge.php
@@ -18,13 +18,9 @@ class GoogleSearchBridge extends BridgeAbstract{
$this->uri = "https://www.google.com/";
$this->description = "Returns most recent results from Google search.";
- $this->parameters[] =
- '[
- {
- "name" : "keyword",
- "identifier" : "q"
- }
- ]';
+ $this->parameters[] = array(
+ 'q'=>array('name'=>"keyword")
+ );
}
diff --git a/bridges/HDWallpapersBridge.php b/bridges/HDWallpapersBridge.php
index 98c252fb..4beb1a7b 100644
--- a/bridges/HDWallpapersBridge.php
+++ b/bridges/HDWallpapersBridge.php
@@ -11,22 +11,14 @@ class HDWallpapersBridge extends BridgeAbstract {
$this->uri = "http://www.hdwallpapers.in/";
$this->description = "Returns the latests wallpapers from HDWallpapers";
- $this->parameters[] =
- '[
- {
- "name" : "category",
- "identifier" : "c"
- },
- {
- "name" : "max number of wallpapers",
- "identifier" : "m"
- },
- {
- "name" : "resolution",
- "identifier" : "r",
- "exampleValue" : "1920x1200, 1680x1050, ..."
- }
- ]';
+ $this->parameters[] = array(
+ 'c'=>array('name'=>'category'),
+ 'm'=>array('name'=>'max number of wallpapers'),
+ 'r'=>array(
+ 'name'=>'resolution',
+ 'exampleValue'=>'1920x1200, 1680x1050,…'
+ )
+ );
}
public function collectData(array $param){
diff --git a/bridges/IdenticaBridge.php b/bridges/IdenticaBridge.php
index a853e066..5b696052 100644
--- a/bridges/IdenticaBridge.php
+++ b/bridges/IdenticaBridge.php
@@ -10,13 +10,9 @@ class IdenticaBridge extends BridgeAbstract{
$this->uri = "https://identi.ca/";
$this->description = "Returns user timelines";
- $this->parameters[] =
- '[
- {
- "name" : "username",
- "identifier" : "u"
- }
- ]';
+ $this->parameters[] = array(
+ 'u'=>array('name'=>'username')
+ );
}
diff --git a/bridges/InstagramBridge.php b/bridges/InstagramBridge.php
index b029b0d8..c48ea947 100644
--- a/bridges/InstagramBridge.php
+++ b/bridges/InstagramBridge.php
@@ -10,13 +10,9 @@ class InstagramBridge extends BridgeAbstract{
$this->uri = "http://instagram.com/";
$this->description = "Returns the newest images";
- $this->parameters[] =
- '[
- {
- "name" : "username",
- "identifier" : "u"
- }
- ]';
+ $this->parameters[] = array(
+ 'u'=>array('name'=>'username')
+ );
}
diff --git a/bridges/IsoHuntBridge.php b/bridges/IsoHuntBridge.php
index 6a4f1af0..718fe473 100644
--- a/bridges/IsoHuntBridge.php
+++ b/bridges/IsoHuntBridge.php
@@ -11,164 +11,82 @@ class IsoHuntBridge extends BridgeAbstract{
* Notice: The categories "News" and "Top Searches" are received from the main page
* Elements are sorted by name ascending!
*/
- $this->parameters['By "Latest" category'] =
- '[
- {
- "name" : "Latest category",
- "identifier" : "latest_category",
- "type" : "list",
- "required" : true,
- "title" : "Select your category",
- "defaultValue" : "News",
- "values" :
- [
- {
- "name" : "Hot Torrents",
- "value" : "hot_torrents"
- },
- {
- "name" : "News",
- "value" : "news"
- },
- {
- "name" : "Releases",
- "value" : "releases"
- },
- {
- "name" : "Torrents",
- "value" : "torrents"
- }
- ]
- }
- ]';
+ $this->parameters['By "Latest" category'] = array(
+ 'latest_category'=>array(
+ 'name'=>'Latest category',
+ 'type'=>'list',
+ 'required'=>true,
+ 'title'=>'Select your category',
+ 'defaultValue'=>'News',
+ 'values'=>array(
+ 'Hot Torrents'=>'hot_torrents',
+ 'News'=>'news',
+ 'Releases'=>'releases',
+ 'Torrents'=>'torrents'
+ )
+ )
+ );
/*
* Get feeds for one of the "torrent" categories
* Make sure to add new categories also to get_torrent_category_index($)!
* Elements are sorted by name ascending!
*/
- $this->parameters['By "Torrent" category'] =
- '[
- {
- "name" : "Torrent category",
- "identifier" : "torrent_category",
- "type" : "list",
- "required" : true,
- "title" : "Select your category",
- "defaultValue" : "Anime",
- "values" :
- [
- {
- "name" : "Adult",
- "value" : "adult"
- },
- {
- "name" : "Anime",
- "value" : "anime"
- },
- {
- "name" : "Books",
- "value" : "books"
- },
- {
- "name" : "Games",
- "value" : "games"
- },
- {
- "name" : "Movies",
- "value" : "movies"
- },
- {
- "name" : "Music",
- "value" : "music"
- },
- {
- "name" : "Other",
- "value" : "other"
- },
- {
- "name" : "Series & TV",
- "value" : "series_tv"
- },
- {
- "name" : "Software",
- "value" : "software"
- }
- ]
- },
- {
- "name" : "Sort by popularity",
- "identifier" : "torrent_popularity",
- "type" : "checkbox",
- "title" : "Activate to receive results by popularity"
- }
- ]';
+ $this->parameters['By "Torrent" category'] = array(
+ 'torrent_category'=>array(
+ 'name'=>'Torrent category',
+ 'type'=>'list',
+ 'required'=>true,
+ 'title'=>'Select your category',
+ 'defaultValue'=>'Anime',
+ 'values'=>array(
+ 'Adult'=>'adult',
+ 'Anime'=>'anime',
+ 'Books'=>'books',
+ 'Games'=>'games',
+ 'Movies'=>'movies',
+ 'Music'=>'music',
+ 'Other'=>'other',
+ 'Series & TV'=>'series_tv',
+ 'Software'=>'software'
+ )
+ ),
+ 'torrent_popularity'=>array(
+ 'name'=>'Sort by popularity',
+ 'type'=>'checkbox',
+ 'title'=>'Activate to receive results by popularity'
+ )
+ );
/*
* Get feeds for a specific search request
*/
- $this->parameters['Search torrent by name'] =
- '[
- {
- "name" : "Name",
- "identifier" : "search_name",
- "type" : "text",
- "required" : true,
- "title" : "Insert your search query",
- "exampleValue" : "Bridge"
- },
- {
- "name" : "Category",
- "identifier" : "search_category",
- "type" : "list",
- "required" : false,
- "title" : "Select your category",
- "defaultValue" : "All",
- "values" :
- [
- {
- "name" : "Adult",
- "value" : "adult"
- },
- {
- "name" : "All",
- "value" : "all"
- },
- {
- "name" : "Anime",
- "value" : "anime"
- },
- {
- "name" : "Books",
- "value" : "books"
- },
- {
- "name" : "Games",
- "value" : "games"
- },
- {
- "name" : "Movies",
- "value" : "movies"
- },
- {
- "name" : "Music",
- "value" : "music"
- },
- {
- "name" : "Other",
- "value" : "other"
- },
- {
- "name" : "Series & TV",
- "value" : "series_tv"
- },
- {
- "name" : "Software",
- "value" : "software"
- }
- ]
- }
- ]';
+ $this->parameters['Search torrent by name'] = array(
+ 'search_name'=>array(
+ 'name'=>'Name',
+ 'required'=>true,
+ 'title'=>'Insert your search query',
+ 'exampleValue'=>'Bridge'
+ ),
+ 'search_category'=>array(
+ 'name'=>'Category',
+ 'type'=>'list',
+ 'title'=>'Select your category',
+ 'defaultValue'=>'All',
+ 'values'=>array(
+ 'Adult'=>'adult',
+ 'All'=>'all',
+ 'Anime'=>'anime',
+ 'Books'=>'books',
+ 'Games'=>'games',
+ 'Movies'=>'movies',
+ 'Music'=>'music',
+ 'Other'=>'other',
+ 'Series & TV'=>'series_tv',
+ 'Software'=>'software'
+ )
+ )
+ );
}
public function collectData(array $params){
@@ -215,13 +133,13 @@ class IsoHuntBridge extends BridgeAbstract{
}
private function get_torrent_category_name($category){
- $parameter = json_decode($this->parameters['By "Torrent" category'], true);
- $languages = $parameter[0]['values'];
+ $parameter = $this->parameters['By "Torrent" category'];
+ $languages = $parameter['torrent_category']['values'];
+
+ foreach($languages as $name=>$value)
+ if(strtolower(trim($value)) === strtolower(trim($category)))
+ return $name;
- foreach($languages as $language)
- if(strtolower(trim($language['value'])) === strtolower(trim($category)))
- return $language['name'];
-
return 'Unknown category';
}
@@ -244,19 +162,19 @@ class IsoHuntBridge extends BridgeAbstract{
private function request_latest_category($category){
switch($category){
- case 'hot_torrents':
+ case 'hot_torrents':
$this->name = 'Latest hot torrents - ' . $this->name;
$this->uri .= '/statistic/hot/torrents';
break;
- case 'news':
+ case 'news':
$this->name = 'Latest news - ' . $this->name;
$this->uri .= '/';
break;
- case 'releases':
+ case 'releases':
$this->name = 'Latest releases - ' . $this->name;
$this->uri .= '/releases.php';
break;
- case 'torrents':
+ case 'torrents':
$this->name = 'Latest torrents - ' . $this->name;
$this->uri .= '/latest.php';
break;
@@ -288,13 +206,13 @@ class IsoHuntBridge extends BridgeAbstract{
}
private function get_search_category_name($category){
- $parameter = json_decode($this->parameters['Search torrent by name'], true);
- $languages = $parameter[1]['values'];
+ $parameter = $this->parameters['Search torrent by name'];
+ $languages = $parameter['search_category']['values'];
+
+ foreach($languages as $name=>$value)
+ if(strtolower(trim($value)) === strtolower(trim($category)))
+ return $name;
- foreach($languages as $language)
- if(strtolower(trim($language['value'])) === strtolower(trim($category)))
- return $language['name'];
-
return 'Unknown category';
}
@@ -332,7 +250,7 @@ class IsoHuntBridge extends BridgeAbstract{
$item->uri = $this->fix_relative_uri($anchor->href);
$item->title = $anchor->title;
- // $item->author =
+ // $item->author =
$item->timestamp = strtotime($date->plaintext);
$item->content = $this->fix_relative_uri($torrent->innertext);
@@ -370,9 +288,9 @@ class IsoHuntBridge extends BridgeAbstract{
$item->uri = $element->href;
$item->title = $element->plaintext;
- // $item->author =
- // $item->timestamp =
- // $item->content =
+ // $item->author =
+ // $item->timestamp =
+ // $item->content =
$this->items[] = $item;
}
@@ -453,7 +371,7 @@ class IsoHuntBridge extends BridgeAbstract{
$content = $post->find('div', 0);
if(!$content)
$this->returnServerError('Unable to find content!');
-
+
// Remove
No updates available
"; - + $this->items[] = $item; - } + } } public function getName(){ @@ -331,4 +211,4 @@ class MangareaderBridge extends BridgeAbstract{ return 10800; // 3 hours } } -?> \ No newline at end of file +?> diff --git a/bridges/MilbooruBridge.php b/bridges/MilbooruBridge.php index 1702cad6..34fa1451 100644 --- a/bridges/MilbooruBridge.php +++ b/bridges/MilbooruBridge.php @@ -8,18 +8,13 @@ class MilbooruBridge extends BridgeAbstract{ $this->uri = "http://sheslostcontrol.net/moe/shimmie/"; $this->description = "Returns images from given page"; - $this->parameters[] = - '[ - { - "name" : "page", - "identifier" : "p", - "type" : "number" - }, - { - "name" : "tags", - "identifier" : "t" - } - ]'; + $this->parameters[] = array( + 'p'=>array( + 'name'=>'page', + 'type'=>'number' + ), + 't'=>array('name'=>'tags') + ); } public function collectData(array $param){ diff --git a/bridges/MspabooruBridge.php b/bridges/MspabooruBridge.php index a33d7a2d..7005a408 100644 --- a/bridges/MspabooruBridge.php +++ b/bridges/MspabooruBridge.php @@ -8,18 +8,13 @@ class MspabooruBridge extends BridgeAbstract{ $this->uri = "http://mspabooru.com/"; $this->description = "Returns images from given page"; - $this->parameters[] = - '[ - { - "name" : "page", - "identifier" : "p", - "type" : "number" - }, - { - "name" : "tags", - "identifier" : "t" - } - ]'; + $this->parameters[] = array( + 'p'=>array( + 'name'=>'page', + 'type'=>'number' + ), + 't'=>array('name'=>'tags') + ); } diff --git a/bridges/NextgovBridge.php b/bridges/NextgovBridge.php index b44d766c..5c086a11 100644 --- a/bridges/NextgovBridge.php +++ b/bridges/NextgovBridge.php @@ -8,28 +8,24 @@ class NextgovBridge extends BridgeAbstract { $this->uri = 'https://www.nextgov.com/'; $this->description = 'USA Federal technology news, best practices, and web 2.0 tools.'; - $this->parameters[] = - '[ - { - "name" : "Category", - "type" : "list", - "identifier" : "category", - "values" : - [ - { "name" : "All", "value" : "all" }, - { "name" : "Technology News", "value" : "technology-news" }, - { "name" : "CIO Briefing", "value" : "cio-briefing" }, - { "name" : "Emerging Tech", "value" : "emerging-tech" }, - { "name" : "Cloud", "value" : "cloud-computing" }, - { "name" : "Cybersecurity", "value" : "cybersecurity" }, - { "name" : "Mobile", "value" : "mobile" }, - { "name" : "Health", "value" : "health" }, - { "name" : "Defense", "value" : "defense" }, - { "name" : "Big Data", "value" : "big-data" } - ] - } - ]'; - + $this->parameters[] = array( + 'category'=>array( + 'name'=>'Category', + 'type'=>'list', + 'values'=>array( + 'All'=>'all', + 'Technology News'=>'technology-news', + 'CIO Briefing'=>'cio-briefing', + 'Emerging Tech'=>'emerging-tech', + 'Cloud'=>'cloud-computing', + 'Cybersecurity'=>'cybersecurity', + 'Mobile'=>'mobile', + 'Health'=>'health', + 'Defense'=>'defense', + 'Big Data'=>'big-data' + ) + ) + ); } public function collectData(array $param) { diff --git a/bridges/NovelUpdatesBridge.php b/bridges/NovelUpdatesBridge.php index 2a99ad4c..a9dccde8 100644 --- a/bridges/NovelUpdatesBridge.php +++ b/bridges/NovelUpdatesBridge.php @@ -7,14 +7,12 @@ class NovelUpdatesBridge extends BridgeAbstract{ $this->name = "Novel Updates"; $this->uri = "http://www.novelupdates.com/"; $this->description = "Returns releases from Novel Updates"; - $this->parameters[] = - '[ - { - "name" : "Novel URL", - "identifier" : "n", - "required": true - } - ]'; + $this->parameters[] = array( + 'n'=>array( + 'name'=>'Novel URL', + 'required'=>true + ) + ); } public function collectData(array $param){ diff --git a/bridges/OpenClassroomsBridge.php b/bridges/OpenClassroomsBridge.php index d435ef9f..34866937 100644 --- a/bridges/OpenClassroomsBridge.php +++ b/bridges/OpenClassroomsBridge.php @@ -9,52 +9,23 @@ class OpenClassroomsBridge extends BridgeAbstract{ $this->description = "Returns latest tutorials from OpenClassrooms."; - $this->parameters[] = - '[ - { - "name" : "Catégorie", - "identifier" : "u", - "type" : "list", - "values" : [ - { - "name" : "Arts & Culture", - "value" : "arts" - }, - { - "name" : "Code", - "value" : "code" - }, - { - "name" : "Design", - "value" : "design" - }, - { - "name" : "Entreprise", - "value" : "business" - }, - { - "name" : "Numérique", - "value" : "digital" - }, - { - "name" : "Sciences", - "value" : "sciences" - }, - { - "name" : "Sciences Humaines", - "value" : "humainities" - }, - { - "name" : "Systèmes d\'information", - "value" : "it" - }, - { - "name" : "Autres", - "value" : "others" - } - ] - } - ]'; + $this->parameters[] = array( + 'u'=>array( + 'name'=>'Catégorie', + 'type'=>'list', + 'values'=>array( + 'Arts & Culture'=>'arts', + 'Code'=>'code', + 'Design'=>'design', + 'Entreprise'=>'business', + 'Numérique'=>'digital', + 'Sciences'=>'sciences', + 'Sciences Humaines'=>'humainities', + 'Systèmes d\'information'=>'it', + 'Autres'=>'others' + ) + ) + ); } diff --git a/bridges/ParuVenduImmoBridge.php b/bridges/ParuVenduImmoBridge.php index 43149cd7..8cab0112 100644 --- a/bridges/ParuVenduImmoBridge.php +++ b/bridges/ParuVenduImmoBridge.php @@ -12,31 +12,21 @@ class ParuVenduImmoBridge extends BridgeAbstract $this->description = "Returns the ads from the first page of search result."; - $this->parameters[] = - '[ - { - "name": "Minimal surface m²", - "type" : "number", - "identifier" : "minarea" - }, - { - "name" : "Max price", - "type" : "number", - "identifier" : "maxprice" - }, - { - "name" : "Country code", - "type" : "text", - "identifier" : "pa", - "exampleValue" : "FR" - }, - { - "name" : "department numbers or postal codes, comma-separated", - "type" : "text", - "identifier" : "lo" - } - - ]'; + $this->parameters[] = array( + 'minarea'=>array( + 'name'=>'Minimal surface m²', + 'type'=>'number' + ), + 'maxprice'=>array( + 'name'=>'Max price', + 'type'=>'number' + ), + 'pa'=>array( + 'name'=>'Country code', + 'exampleValue'=>'FR' + ), + 'lo'=>array('name'=>'department numbers or postal codes, comma-separated') + ); } public function collectData(array $param) diff --git a/bridges/PickyWallpapersBridge.php b/bridges/PickyWallpapersBridge.php index c26a1ebe..66d97ff6 100644 --- a/bridges/PickyWallpapersBridge.php +++ b/bridges/PickyWallpapersBridge.php @@ -12,29 +12,20 @@ class PickyWallpapersBridge extends BridgeAbstract { $this->uri = "http://www.pickywallpapers.com/"; $this->description = "Returns the latests wallpapers from PickyWallpapers"; - $this->parameters[] = - '[ - { - "name" : "Category", - "identifier" : "c" - }, - { - "name" : "subcategory", - "identifier" : "s" - }, - { - "name" : "Max number of wallpapers", - "identifier" : "m", - "type" : "number" - }, - { - "name" : "resolution", - "identifier" : "r", - "exampleValue" : "1920x1200, 1680x1050, ...", - "pattern" : "[0-9]{3,4}x[0-9]{3,4}" - } + $this->parameters[] = array( + 'c'=>array('name'=>'category'), + 's'=>array('name'=>'subcategory'), + 'm'=>array( + 'name'=>'Max number of wallpapers', + 'type'=>'number' + ), + 'r'=>array( + 'name'=>'resolution', + 'exampleValue'=>'1920x1200, 1680x1050,…', + 'pattern'=>'[0-9]{3,4}x[0-9]{3,4}' + ) + ); - ]'; } public function collectData(array $param){ diff --git a/bridges/PinterestBridge.php b/bridges/PinterestBridge.php index 7d4a6684..2cf2f00a 100644 --- a/bridges/PinterestBridge.php +++ b/bridges/PinterestBridge.php @@ -12,26 +12,14 @@ class PinterestBridge extends BridgeAbstract{ $this->uri = "http://www.pinterest.com"; $this->description = "Returns the newest images on a board"; - $this->parameters["By username and board"] = - '[ - { - "name" : "username", - "identifier" : "u" - }, - { - "name" : "board", - "identifier" : "b" + $this->parameters["By username and board"] = array( + 'u'=>array('name'=>'username'), + 'b'=>array('name'=>'board') + ); - } - ]'; - - $this->parameters["From search"] = - '[ - { - "name" : "Keyword", - "identifier" : "q" - } - ]'; + $this->parameters["From search"] = array( + 'q'=>array('name'=>'Keyword') + ); } public function collectData(array $param){ diff --git a/bridges/RTBFBridge.php b/bridges/RTBFBridge.php index 310f289f..4c6e6c80 100644 --- a/bridges/RTBFBridge.php +++ b/bridges/RTBFBridge.php @@ -6,16 +6,13 @@ class RTBFBridge extends BridgeAbstract { $this->description = "Returns the newest RTBF videos by series ID"; $this->maintainer = "Frenzie"; - $this->parameters[] = - '[ - { - "type" : "text", - "identifier" : "c", - "name" : "series id", - "exampleValue" : "9500", - "required" : true - } - ]'; + $this->parameters[] = array( + 'c'=>array( + 'name'=>'series id', + 'exampleValue'=>9500, + 'required'=>true + ) + ); } public function collectData(array $param) { diff --git a/bridges/Rule34Bridge.php b/bridges/Rule34Bridge.php index 1e2323d9..96362402 100644 --- a/bridges/Rule34Bridge.php +++ b/bridges/Rule34Bridge.php @@ -8,18 +8,14 @@ class Rule34Bridge extends BridgeAbstract{ $this->uri = "http://rule34.xxx/"; $this->description = "Returns images from given page"; - $this->parameters[] = - '[ - { - "name" : "page", - "identifier" : "p", - "type" : "number" - }, - { - "name" : "tags", - "identifier" : "t" - } - ]'; + $this->parameters[] = array( + 'p'=>array( + 'name'=>'page', + 'type'=>'number' + ), + 't'=>array('name'=>'tags') + ); + } public function collectData(array $param){ diff --git a/bridges/Rule34pahealBridge.php b/bridges/Rule34pahealBridge.php index 17209fc7..43d6a71d 100644 --- a/bridges/Rule34pahealBridge.php +++ b/bridges/Rule34pahealBridge.php @@ -8,18 +8,13 @@ class Rule34pahealBridge extends BridgeAbstract{ $this->uri = "http://rule34.paheal.net/"; $this->description = "Returns images from given page"; - $this->parameters[] = - '[ - { - "name" : "page", - "identifier" : "p", - "type" : "number" - }, - { - "name" : "tags", - "identifier" : "t" - } - ]'; + $this->parameters[] = array( + 'p'=>array( + 'name'=>'page', + 'type'=>'number' + ), + 't'=>array('name'=>'tags') + ); } diff --git a/bridges/SafebooruBridge.php b/bridges/SafebooruBridge.php index b4c64f2d..a3e3ec87 100644 --- a/bridges/SafebooruBridge.php +++ b/bridges/SafebooruBridge.php @@ -8,18 +8,13 @@ class SafebooruBridge extends BridgeAbstract{ $this->uri = "http://safebooru.org/"; $this->description = "Returns images from given page"; - $this->parameters[] = - '[ - { - "name" : "page", - "identifier" : "p", - "type" : "number" - }, - { - "name" : "tags", - "identifier" : "t" - } - ]'; + $this->parameters[] = array( + 'p'=>array( + 'name'=>'page', + 'type'=>'number' + ), + 't'=>array('name'=>'tags') + ); } diff --git a/bridges/SakugabooruBridge.php b/bridges/SakugabooruBridge.php index e1c13a12..e2ce7f95 100644 --- a/bridges/SakugabooruBridge.php +++ b/bridges/SakugabooruBridge.php @@ -8,18 +8,14 @@ class SakugabooruBridge extends BridgeAbstract{ $this->uri = "http://sakuga.yshi.org/"; $this->description = "Returns images from given page"; - $this->parameters[] = - '[ - { - "name" : "page", - "identifier" : "p", - "type" : "number" - }, - { - "name" : "tags", - "identifier" : "t" - } - ]'; + $this->parameters[] = array( + 'p'=>array( + 'name'=>'page', + 'type'=>'number' + ), + 't'=>array('name'=>'tags') + ); + } public function collectData(array $param){ diff --git a/bridges/ScoopItBridge.php b/bridges/ScoopItBridge.php index 248c9357..60d04168 100644 --- a/bridges/ScoopItBridge.php +++ b/bridges/ScoopItBridge.php @@ -8,14 +8,12 @@ class ScoopItBridge extends BridgeAbstract{ $this->uri = "http://www.scoop.it"; $this->description = "Returns most recent results from ScoopIt."; - $this->parameters[] = - '[ - { - "name" : "keyword", - "identifier" : "u", - "required": true - } - ]'; + $this->parameters[] = array( + 'u'=>array( + 'name'=>'keyword', + 'required'=>true + ) + ); } diff --git a/bridges/SensCritiqueBridge.php b/bridges/SensCritiqueBridge.php index c51cccb4..a051ea2d 100644 --- a/bridges/SensCritiqueBridge.php +++ b/bridges/SensCritiqueBridge.php @@ -9,40 +9,33 @@ class SensCritiqueBridge extends BridgeAbstract { $this->uri = "http://www.senscritique.com"; $this->description = "Sens Critique news"; - $this->parameters[] = - '[ - { - "name" : "Movies", - "identifier" : "m", - "type": "checkbox" - }, - { - "name" : "Series", - "identifier" : "s", - "type": "checkbox" - }, - { - "name" : "Video Games", - "identifier" : "g", - "type": "checkbox" - }, - { - "name" : "Books", - "identifier" : "b", - "type": "checkbox" - }, - { - "name" : "BD", - "identifier" : "bd", - "type": "checkbox" - }, - { - "name" : "Music", - "identifier" : "mu", - "type": "checkbox" - } - ]'; - } + $this->parameters[] = array( + 'm'=>array( + 'name'=>'Movies', + 'type'=>'checkbox' + ), + 's'=>array( + 'name'=>'Series', + 'type'=>'checkbox' + ), + 'g'=>array( + 'name'=>'Video Games', + 'type'=>'checkbox' + ), + 'b'=>array( + 'name'=>'Books', + 'type'=>'checkbox' + ), + 'bd'=>array( + 'name'=>'BD', + 'type'=>'checkbox' + ), + 'mu'=>array( + 'name'=>'Music', + 'type'=>'checkbox' + ) + ); + } public function collectData(array $param) { if ((isset($param['m']) && $param['m'])) { diff --git a/bridges/SoundcloudBridge.php b/bridges/SoundcloudBridge.php index 01a60912..64df0790 100644 --- a/bridges/SoundcloudBridge.php +++ b/bridges/SoundcloudBridge.php @@ -11,14 +11,12 @@ class SoundCloudBridge extends BridgeAbstract{ $this->uri = "http://www.soundcloud.com/"; $this->description = "Returns 10 newest music from user profile"; - $this->parameters[] = - '[ - { - "name" : "username", - "identifier" : "u", - "required": true - } - ]'; + $this->parameters[] = array( + 'u'=>array( + 'name'=>'username', + 'required'=>true + ) + ); } diff --git a/bridges/SuperbWallpapersBridge.php b/bridges/SuperbWallpapersBridge.php index 74eab646..4a6bba08 100644 --- a/bridges/SuperbWallpapersBridge.php +++ b/bridges/SuperbWallpapersBridge.php @@ -11,24 +11,17 @@ class SuperbWallpapersBridge extends BridgeAbstract { $this->uri = "http://www.superbwallpapers.com/"; $this->description = "Returns the latests wallpapers from SuperbWallpapers"; - $this->parameters[] = - '[ - { - "name" : "Category", - "identifier" : "c" - }, - { - "name" : "Max number of wallpapers", - "identifier" : "m", - "type" : "number" - }, - { - "name" : "resolution", - "identifier" : "r", - "exampleValue" : "1920x1200, 1680x1050, ..." - } - - ]'; + $this->parameters[] = array( + 'c'=>array('name'=>'category'), + 'm'=>array( + 'name'=>'Max number of wallpapers', + 'type'=>'number' + ), + 'r'=>array( + 'name'=>'resolution', + 'exampleValue'=>'1920x1200, 1680x1050,…' + ) + ); } diff --git a/bridges/T411Bridge.php b/bridges/T411Bridge.php index 8d880c5d..0d54062f 100644 --- a/bridges/T411Bridge.php +++ b/bridges/T411Bridge.php @@ -8,14 +8,12 @@ class T411Bridge extends BridgeAbstract { $this->uri = 'https://t411.ch/'; $this->description = 'Returns the 10 newest torrents with specified search terms
');
- else
+ else
$item->content = $this->LoadFullArticle($item->uri);
$this->items[] = $item;
@@ -190,14 +165,14 @@ class WikipediaBridge extends BridgeAbstract{
private function AddDidYouKnowGeneric($element, $fullArticle){
foreach($element->find('ul', 0)->find('li') as $entry){
$item = new \Item();
-
+
// We can only use the first anchor, there is no way of finding the 'correct' one if there are multiple
$item->uri = $this->uri . $entry->find('a', 0)->href;
$item->title = strip_tags($entry->innertext);
if(!$fullArticle)
$item->content = $this->ReplaceURIInHTMLElement($entry);
- else
+ else
$item->content = $this->LoadFullArticle($item->uri);
$this->items[] = $item;
@@ -209,15 +184,15 @@ class WikipediaBridge extends BridgeAbstract{
*/
private function LoadFullArticle($uri){
$content_html = $this->getSimpleHTMLDOM($uri);
-
+
if(!$content_html)
$this->returnServerError('Could not load site: ' . $uri . '!');
-
+
$content = $content_html->find('#mw-content-text', 0);
if(!$content)
$this->returnServerError('Could not find content in page: ' . $uri . '!');
-
+
// Let's remove a couple of things from the article
$table = $content->find('#toc', 0); // Table of contents
if(!$table === false)
@@ -234,7 +209,7 @@ class WikipediaBridge extends BridgeAbstract{
*/
private function GetContentsDE($html, $subject, $fullArticle){
switch($subject){
- case WIKIPEDIA_SUBJECT_TFA:
+ case WIKIPEDIA_SUBJECT_TFA:
$element = $html->find('div[id=mf-tfa]', 0);
$this->AddTodaysFeaturedArticleGeneric($element, $fullArticle);
break;
@@ -252,7 +227,7 @@ class WikipediaBridge extends BridgeAbstract{
*/
private function GetContentsFR($html, $subject, $fullArticle){
switch($subject){
- case WIKIPEDIA_SUBJECT_TFA:
+ case WIKIPEDIA_SUBJECT_TFA:
$element = $html->find('div[id=accueil-lumieresur]', 0);
$this->AddTodaysFeaturedArticleGeneric($element, $fullArticle);
break;
@@ -270,7 +245,7 @@ class WikipediaBridge extends BridgeAbstract{
*/
private function GetContentsEN($html, $subject, $fullArticle){
switch($subject){
- case WIKIPEDIA_SUBJECT_TFA:
+ case WIKIPEDIA_SUBJECT_TFA:
$element = $html->find('div[id=mp-tfa]', 0);
$this->AddTodaysFeaturedArticleGeneric($element, $fullArticle);
break;
@@ -288,7 +263,7 @@ class WikipediaBridge extends BridgeAbstract{
*/
private function GetContentsEO($html, $subject, $fullArticle){
switch($subject){
- case WIKIPEDIA_SUBJECT_TFA:
+ case WIKIPEDIA_SUBJECT_TFA:
$element = $html->find('div[id=mf-artikolo-de-la-semajno]', 0);
$this->AddTodaysFeaturedArticleGeneric($element, $fullArticle);
break;
diff --git a/bridges/WordPressBridge.php b/bridges/WordPressBridge.php
index eaa3e647..70e17ee4 100644
--- a/bridges/WordPressBridge.php
+++ b/bridges/WordPressBridge.php
@@ -13,14 +13,12 @@ class WordPressBridge extends BridgeAbstract {
$this->uri = "https://wordpress.org/";
$this->description = "Returns the 3 newest full posts of a Wordpress blog";
- $this->parameters[] =
- '[
- {
- "name" : "blog URL",
- "required" : true,
- "identifier" : "url"
- }
- ]';
+ $this->parameters[] = array(
+ 'url'=>array(
+ 'name'=>'Blog URL',
+ 'required'=>true
+ )
+ );
}
// Returns the content type for a given html dom
diff --git a/bridges/WorldOfTanks.php b/bridges/WorldOfTanks.php
index 5d84b268..5601d834 100644
--- a/bridges/WorldOfTanks.php
+++ b/bridges/WorldOfTanks.php
@@ -13,50 +13,25 @@ class WorldOfTanks extends HttpCachingBridgeAbstract{
$this->uri = "http://worldoftanks.eu/";
$this->description = "News about the tank slaughter game.";
- $this->parameters[] =
- '[
- {
- "name" : "ID de la catégorie",
- "type" : "number",
- "identifier" : "category"
- },
- {
- "name" : "Langue",
- "identifier" : "lang",
- "type" : "list",
- "values" : [
- {
- "name" : "Français",
- "value" : "fr"
- },
- {
- "name" : "English",
- "value" : "en"
- },
- {
- "name" : "Español",
- "value" : "es"
- },
- {
- "name" : "Deutsch",
- "value" : "de"
- },
- {
- "name" : "Čeština",
- "value" : "cs"
- },
- {
- "name" : "Polski",
- "value" : "pl"
- },
- {
- "name" : "Türkçe",
- "value" : "tr"
- }
- ]
-
- }
- ]';
+ $this->parameters[] = array(
+ 'category'=>array(
+ 'name'=>'ID de la catégorie',
+ 'type'=>'number'
+ ),
+ 'lang'=>array(
+ 'name'=>'Langue',
+ 'type'=>'list',
+ 'values'=>array(
+ 'Français'=>'fr',
+ 'English'=>'en',
+ 'Español'=>'es',
+ 'Deutsch'=>'de',
+ 'Čeština'=>'cs',
+ 'Polski'=>'pl',
+ 'Türkçe'=>'tr'
+ )
+ )
+ );
}
diff --git a/bridges/XbooruBridge.php b/bridges/XbooruBridge.php
index 4d8543bf..28e6226d 100644
--- a/bridges/XbooruBridge.php
+++ b/bridges/XbooruBridge.php
@@ -8,18 +8,13 @@ class XbooruBridge extends BridgeAbstract{
$this->uri = "http://xbooru.com/";
$this->description = "Returns images from given page";
- $this->parameters[] =
- '[
- {
- "name" : "page",
- "identifier" : "p",
- "type" : "number"
- },
- {
- "name" : "tags",
- "identifier" : "t"
- }
- ]';
+ $this->parameters[] = array(
+ 'p'=>array(
+ 'name'=>'page',
+ 'type'=>'number'
+ ),
+ 't'=>array('name'=>'tags')
+ );
}
public function collectData(array $param){
diff --git a/bridges/YandereBridge.php b/bridges/YandereBridge.php
index c7aa3090..0b894294 100644
--- a/bridges/YandereBridge.php
+++ b/bridges/YandereBridge.php
@@ -8,18 +8,13 @@ class YandereBridge extends BridgeAbstract{
$this->uri = "https://yande.re/";
$this->description = "Returns images from given page and tags";
- $this->parameters[] =
- '[
- {
- "name" : "page",
- "identifier" : "p",
- "type" : "number"
- },
- {
- "name" : "tags",
- "identifier" : "t"
- }
- ]';
+ $this->parameters[] = array(
+ 'p'=>array(
+ 'name'=>'page',
+ 'type'=>'number'
+ ),
+ 't'=>array('name'=>'tags')
+ );
}
public function collectData(array $param){
diff --git a/bridges/YoutubeBridge.php b/bridges/YoutubeBridge.php
index 5a46cf51..ed032537 100644
--- a/bridges/YoutubeBridge.php
+++ b/bridges/YoutubeBridge.php
@@ -15,55 +15,40 @@ class YoutubeBridge extends BridgeAbstract {
$this->description = 'Returns the 10 newest videos by username/channel/playlist or search';
$this->maintainer = 'mitsukarenai';
- $this->parameters['By username'] =
- '[
- {
- "type" : "text",
- "identifier" : "u",
- "name" : "username",
- "exampleValue" : "test",
- "required" : true
- }
- ]';
+ $this->parameters['By username'] = array(
+ 'u'=>array(
+ 'name'=>'username',
+ 'exampleValue'=>'test',
+ 'required'=>true
+ )
+ );
- $this->parameters['By channel id'] =
- '[
- {
- "type" : "text",
- "identifier" : "c",
- "name" : "channel id",
- "exampleValue" : "15",
- "required" : true
- }
- ]';
+ $this->parameters['By channel id'] = array(
+ 'c'=>array(
+ 'name'=>'channel id',
+ 'exampleValue'=>"15",
+ 'required'=>true
+ )
+ );
- $this->parameters['By playlist Id'] =
- '[
- {
- "type" : "text",
- "identifier" : "p",
- "name" : "playlist id",
- "exampleValue" : "15"
- }
- ]';
+ $this->parameters['By playlist Id'] = array(
+ 'p'=>array(
+ 'name'=>'playlist id',
+ 'exampleValue'=>"15"
+ )
+ );
- $this->parameters['Search result'] =
- '[
- {
- "type" : "text",
- "identifier" : "s",
- "name" : "search keyword",
- "exampleValue" : "test"
-
- },
- {
- "type" : "number",
- "identifier" : "pa",
- "name" : "page",
- "exampleValue" : "1"
-
- }
- ]';
+ $this->parameters['Search result'] = array(
+ 's'=>array(
+ 'name'=>'search keyword',
+ 'exampleValue'=>'test'
+ ),
+ 'pa'=>array(
+ 'name'=>'page',
+ 'type'=>'number',
+ 'exampleValue'=>1
+ )
+ );
}
private function ytBridgeQueryVideoInfo($vid, &$author, &$desc, &$time) {
diff --git a/bridges/ZDNetBridge.php b/bridges/ZDNetBridge.php
index 6b14eaa6..1ef71bbf 100644
--- a/bridges/ZDNetBridge.php
+++ b/bridges/ZDNetBridge.php
@@ -8,173 +8,158 @@ class ZDNetBridge extends BridgeAbstract {
$this->uri = 'http://www.zdnet.com/';
$this->description = 'Technology News, Analysis, Comments and Product Reviews for IT Professionals.';
- $this->parameters[] =
// http://www.zdnet.com/zdnet.opml
- '[
- {
- "name" : "Feed",
- "type" : "list",
- "identifier" : "feed",
- "values" :
- [
- { "name" : "---- Select ----", "value" : "" },
-
- { "name" : "", "value" : "" },
- { "name" : "Subscribe to ZDNet RSS Feeds", "value" : "" },
-
- { "name" : " All Blogs", "value" : "blog" },
- { "name" : " Just News", "value" : "news" },
- { "name" : " All Reviews", "value" : "topic/reviews" },
- { "name" : " Latest Downloads", "value" : "downloads!recent" },
- { "name" : " Latest Articles", "value" : "/" },
- { "name" : " Latest Australia Articles", "value" : "au" },
- { "name" : " Latest UK Articles", "value" : "uk" },
- { "name" : " Latest US Articles", "value" : "us" },
- { "name" : " Latest Asia Articles", "value" : "as" },
-
- { "name" : "", "value" : "" },
- { "name" : "Keep up with ZDNet Blogs RSS:", "value" : "" },
-
- { "name" : " Transforming the Datacenter", "value" : "blog/transforming-datacenter" },
- { "name" : " SMB India", "value" : "blog/smb-india" },
- { "name" : " Indonesia BizTech", "value" : "blog/indonesia-biztech" },
- { "name" : " Hong Kong Techie", "value" : "blog/hong-kong-techie" },
- { "name" : " Tech Taiwan", "value" : "blog/tech-taiwan" },
- { "name" : " Startup India", "value" : "blog/startup-india" },
- { "name" : " Starting Up Asia", "value" : "blog/starting-up-asia" },
- { "name" : " Next-Gen Partner", "value" : "blog/partner" },
- { "name" : " Post-PC Developments", "value" : "blog/post-pc" },
- { "name" : " Benelux", "value" : "blog/benelux" },
- { "name" : " Heat Sink", "value" : "blog/heat-sink" },
- { "name" : " Italy's got tech", "value" : "blog/italy" },
- { "name" : " African Enterprise", "value" : "blog/african-enterprise" },
- { "name" : " New Tech for Old India", "value" : "blog/new-india" },
- { "name" : " Estonia Uncovered", "value" : "blog/estonia" },
- { "name" : " IT Iberia", "value" : "blog/iberia" },
- { "name" : " Brazil Tech", "value" : "blog/brazil" },
- { "name" : " 500 words into the future", "value" : "blog/500-words-into-the-future" },
- { "name" : " ÜberTech", "value" : "blog/ubertech" },
- { "name" : " All About Microsoft", "value" : "blog/microsoft" },
- { "name" : " Back office", "value" : "blog/back-office" },
- { "name" : " Barker Bites Back", "value" : "blog/barker-bites-back" },
- { "name" : " Between the Lines", "value" : "blog/btl" },
- { "name" : " Big on Data", "value" : "blog/big-data" },
- { "name" : " bootstrappr", "value" : "blog/bootstrappr" },
- { "name" : " By The Way", "value" : "blog/by-the-way" },
- { "name" : " Central European Processing", "value" : "blog/central-europe" },
- { "name" : " Cloud Builders", "value" : "blog/cloud-builders" },
- { "name" : " Communication Breakdown", "value" : "blog/communication-breakdown" },
- { "name" : " Collaboration 2.0", "value" : "blog/collaboration" },
- { "name" : " Constellation Research", "value" : "blog/constellation" },
- { "name" : " Consumerization: BYOD", "value" : "blog/consumerization" },
- { "name" : " DIY-IT", "value" : "blog/diy-it" },
- { "name" : " Enterprise Web 2.0", "value" : "blog/hinchcliffe" },
- { "name" : " Five Nines: The Next Gen Datacenter", "value" : "blog/datacenter" },
- { "name" : " Forrester Research", "value" : "blog/forrester" },
- { "name" : " Full Duplex", "value" : "blog/full-duplex" },
- { "name" : " Gen Why?", "value" : "blog/gen-why" },
- { "name" : " Hardware 2.0", "value" : "blog/hardware" },
- { "name" : " Identity Matters", "value" : "blog/identity" },
- { "name" : " iGeneration", "value" : "blog/igeneration" },
- { "name" : " Internet of Everything", "value" : "blog/cisco" },
- { "name" : " Beyond IT Failure", "value" : "blog/projectfailures" },
- { "name" : " Jamie's Mostly Linux Stuff", "value" : "blog/jamies-mostly-linux-stuff" },
- { "name" : " Jack's Blog", "value" : "blog/jacks-blog" },
- { "name" : " Laptops & Desktops", "value" : "blog/computers" },
- { "name" : " Linux and Open Source", "value" : "blog/open-source" },
- { "name" : " London Calling", "value" : "blog/london" },
- { "name" : " Mapping Babel", "value" : "blog/mapping-babel" },
- { "name" : " Mixed Signals", "value" : "blog/mixed-signals" },
- { "name" : " Mobile India", "value" : "blog/mobile-india" },
- { "name" : " Mobile News", "value" : "blog/mobile-news" },
- { "name" : " Networking", "value" : "blog/networking" },
- { "name" : " Norse Code", "value" : "blog/norse-code" },
- { "name" : " Null Pointer", "value" : "blog/null-pointer" },
- { "name" : " The Full Tilt", "value" : "blog/the-full-tilt" },
- { "name" : " Pinoy Post", "value" : "blog/pinoy-post" },
- { "name" : " Practically Tech", "value" : "blog/practically-tech" },
- { "name" : " Product Central", "value" : "blog/product-central" },
- { "name" : " Pulp Tech", "value" : "blog/violetblue" },
- { "name" : " Qubits and Pieces", "value" : "blog/qubits-and-pieces" },
- { "name" : " Securify This!", "value" : "blog/securify-this" },
- { "name" : " Service Oriented", "value" : "blog/service-oriented" },
- { "name" : " Small Talk", "value" : "blog/small-talk" },
- { "name" : " Small Business Matters", "value" : "blog/small-business-matters" },
- { "name" : " Smartphones and Cell Phones", "value" : "blog/cell-phones" },
- { "name" : " Social Business", "value" : "blog/feeds" },
- { "name" : " Social CRM: The Conversation", "value" : "blog/crm" },
- { "name" : " Software & Services Safari", "value" : "blog/sommer" },
- { "name" : " Storage Bits", "value" : "blog/storage" },
- { "name" : " Stacking up Open Clouds", "value" : "blog/apac-redhat" },
- { "name" : " Techie Isles", "value" : "blog/techie-isles" },
- { "name" : " Technolatte", "value" : "blog/technolatte" },
- { "name" : " Tech Podium", "value" : "blog/tech-podium" },
- { "name" : " Tel Aviv Tech", "value" : "blog/tel-aviv" },
- { "name" : " Tech Broiler", "value" : "blog/perlow" },
- { "name" : " The SANMAN", "value" : "blog/the-sanman" },
- { "name" : " The open source revolution", "value" : "blog/the-open-source-revolution" },
- { "name" : " The German View", "value" : "blog/german" },
- { "name" : " The Ed Bott Report", "value" : "blog/bott" },
- { "name" : " The Mobile Gadgeteer", "value" : "blog/mobile-gadgeteer" },
- { "name" : " The Apple Core", "value" : "blog/apple" },
- { "name" : " Tom Foremski: IMHO", "value" : "blog/foremski" },
- { "name" : " Twisted Wire", "value" : "blog/twisted-wire" },
- { "name" : " Vive la tech", "value" : "blog/france" },
- { "name" : " Virtually Speaking", "value" : "blog/virtualization" },
- { "name" : " View from China", "value" : "blog/china" },
- { "name" : " Web design & Free Software", "value" : "blog/web-design-and-free-software" },
- { "name" : " ZDNet Government", "value" : "blog/government" },
- { "name" : " ZDNet UK Book Reviews", "value" : "blog/zdnet-uk-book-reviews" },
- { "name" : " ZDNet UK First Take", "value" : "blog/zdnet-uk-first-take" },
- { "name" : " Zero Day", "value" : "blog/security" },
-
- { "name" : "", "value" : "" },
- { "name" : "ZDNet Hot Topics RSS:", "value" : "" },
-
- { "name" : " Apple", "value" : "topic/apple" },
- { "name" : " Collaboration", "value" : "topic/collaboration" },
- { "name" : " Enterprise Software", "value" : "topic/enterprise-software" },
- { "name" : " Google", "value" : "topic/google" },
- { "name" : " Great debate", "value" : "topic/great-debate" },
- { "name" : " Hardware", "value" : "topic/hardware" },
- { "name" : " IBM", "value" : "topic/ibm" },
- { "name" : " iOS", "value" : "topic/ios" },
- { "name" : " iPhone", "value" : "topic/iphone" },
- { "name" : " iPad", "value" : "topic/ipad" },
- { "name" : " IT Priorities", "value" : "topic/it-priorities" },
- { "name" : " Laptops", "value" : "topic/laptops" },
- { "name" : " Legal", "value" : "topic/legal" },
- { "name" : " Linux", "value" : "topic/linux" },
- { "name" : " Microsoft", "value" : "topic/microsoft" },
- { "name" : " Mobile OS", "value" : "topic/mobile-os" },
- { "name" : " Mobility", "value" : "topic/mobility" },
- { "name" : " Networking", "value" : "topic/networking" },
- { "name" : " Oracle", "value" : "topic/oracle" },
- { "name" : " Processors", "value" : "topic/processors" },
- { "name" : " Samsung", "value" : "topic/samsung" },
- { "name" : " Security", "value" : "topic/security" },
- { "name" : " Small business: going big on mobility", "value" : "topic/small-business-going-big-on-mobility" },
-
- { "name" : "", "value" : "" },
- { "name" : "Product Blogs:", "value" : "" },
-
- { "name" : " Digital Cameras & Camcorders", "value" : "blog/digitalcameras" },
- { "name" : " Home Theater", "value" : "blog/home-theater" },
- { "name" : " Laptops and Desktops", "value" : "blog/computers" },
- { "name" : " The Mobile Gadgeteer", "value" : "blog/mobile-gadgeteer" },
- { "name" : " Smartphones and Cell Phones", "value" : "blog/cell-phones" },
- { "name" : " The ToyBox", "value" : "blog/gadgetreviews" },
-
- { "name" : "", "value" : "" },
- { "name" : "Vertical Blogs:", "value" : "" },
-
- { "name" : " ZDNet Education", "value" : "blog/education" },
- { "name" : " ZDNet Healthcare", "value" : "blog/healthcare" },
- { "name" : " ZDNet Government", "value" : "blog/government" }
- ]
- }
- ]';
-
+ $this->parameters[] = array(
+ 'feed'=>array(
+ 'name'=>'Feed',
+ 'type'=>'list',
+ 'values'=>array(
+ 'Subscribe to ZDNet RSS Feeds'=>array(
+ 'All Blogs'=>'blog',
+ 'Just News'=>'news',
+ 'All Reviews'=>'topic/reviews',
+ 'Latest Downloads'=>'downloads!recent',
+ 'Latest Articles'=>'/',
+ 'Latest Australia Articles'=>'au',
+ 'Latest UK Articles'=>'uk',
+ 'Latest US Articles'=>'us',
+ 'Latest Asia Articles'=>'as'
+ ),
+ 'Keep up with ZDNet Blogs RSS:'=>array(
+ 'Transforming the Datacenter'=>'blog/transforming-datacenter',
+ 'SMB India'=>'blog/smb-india',
+ 'Indonesia BizTech'=>'blog/indonesia-biztech',
+ 'Hong Kong Techie'=>'blog/hong-kong-techie',
+ 'Tech Taiwan'=>'blog/tech-taiwan',
+ 'Startup India'=>'blog/startup-india',
+ 'Starting Up Asia'=>'blog/starting-up-asia',
+ 'Next-Gen Partner'=>'blog/partner',
+ 'Post-PC Developments'=>'blog/post-pc',
+ 'Benelux'=>'blog/benelux',
+ 'Heat Sink'=>'blog/heat-sink',
+ 'Italy\'s got tech'=>'blog/italy',
+ 'African Enterprise'=>'blog/african-enterprise',
+ 'New Tech for Old India'=>'blog/new-india',
+ 'Estonia Uncovered'=>'blog/estonia',
+ 'IT Iberia'=>'blog/iberia',
+ 'Brazil Tech'=>'blog/brazil',
+ '500 words into the future'=>'blog/500-words-into-the-future',
+ 'ÜberTech'=>'blog/ubertech',
+ 'All About Microsoft'=>'blog/microsoft',
+ 'Back office'=>'blog/back-office',
+ 'Barker Bites Back'=>'blog/barker-bites-back',
+ 'Between the Lines'=>'blog/btl',
+ 'Big on Data'=>'blog/big-data',
+ 'bootstrappr'=>'blog/bootstrappr',
+ 'By The Way'=>'blog/by-the-way',
+ 'Central European Processing'=>'blog/central-europe',
+ 'Cloud Builders'=>'blog/cloud-builders',
+ 'Communication Breakdown'=>'blog/communication-breakdown',
+ 'Collaboration 2.0'=>'blog/collaboration',
+ 'Constellation Research'=>'blog/constellation',
+ 'Consumerization: BYOD'=>'blog/consumerization',
+ 'DIY-IT'=>'blog/diy-it',
+ 'Enterprise Web 2.0'=>'blog/hinchcliffe',
+ 'Five Nines: The Next Gen Datacenter'=>'blog/datacenter',
+ 'Forrester Research'=>'blog/forrester',
+ 'Full Duplex'=>'blog/full-duplex',
+ 'Gen Why?'=>'blog/gen-why',
+ 'Hardware 2.0'=>'blog/hardware',
+ 'Identity Matters'=>'blog/identity',
+ 'iGeneration'=>'blog/igeneration',
+ 'Internet of Everything'=>'blog/cisco',
+ 'Beyond IT Failure'=>'blog/projectfailures',
+ 'Jamie\'s Mostly Linux Stuff'=>'blog/jamies-mostly-linux-stuff',
+ 'Jack\'s Blog'=>'blog/jacks-blog',
+ 'Laptops & Desktops'=>'blog/computers',
+ 'Linux and Open Source'=>'blog/open-source',
+ 'London Calling'=>'blog/london',
+ 'Mapping Babel'=>'blog/mapping-babel',
+ 'Mixed Signals'=>'blog/mixed-signals',
+ 'Mobile India'=>'blog/mobile-india',
+ 'Mobile News'=>'blog/mobile-news',
+ 'Networking'=>'blog/networking',
+ 'Norse Code'=>'blog/norse-code',
+ 'Null Pointer'=>'blog/null-pointer',
+ 'The Full Tilt'=>'blog/the-full-tilt',
+ 'Pinoy Post'=>'blog/pinoy-post',
+ 'Practically Tech'=>'blog/practically-tech',
+ 'Product Central'=>'blog/product-central',
+ 'Pulp Tech'=>'blog/violetblue',
+ 'Qubits and Pieces'=>'blog/qubits-and-pieces',
+ 'Securify This!'=>'blog/securify-this',
+ 'Service Oriented'=>'blog/service-oriented',
+ 'Small Talk'=>'blog/small-talk',
+ 'Small Business Matters'=>'blog/small-business-matters',
+ 'Smartphones and Cell Phones'=>'blog/cell-phones',
+ 'Social Business'=>'blog/feeds',
+ 'Social CRM: The Conversation'=>'blog/crm',
+ 'Software & Services Safari'=>'blog/sommer',
+ 'Storage Bits'=>'blog/storage',
+ 'Stacking up Open Clouds'=>'blog/apac-redhat',
+ 'Techie Isles'=>'blog/techie-isles',
+ 'Technolatte'=>'blog/technolatte',
+ 'Tech Podium'=>'blog/tech-podium',
+ 'Tel Aviv Tech'=>'blog/tel-aviv',
+ 'Tech Broiler'=>'blog/perlow',
+ 'The SANMAN'=>'blog/the-sanman',
+ 'The open source revolution'=>'blog/the-open-source-revolution',
+ 'The German View'=>'blog/german',
+ 'The Ed Bott Report'=>'blog/bott',
+ 'The Mobile Gadgeteer'=>'blog/mobile-gadgeteer',
+ 'The Apple Core'=>'blog/apple',
+ 'Tom Foremski: IMHO'=>'blog/foremski',
+ 'Twisted Wire'=>'blog/twisted-wire',
+ 'Vive la tech'=>'blog/france',
+ 'Virtually Speaking'=>'blog/virtualization',
+ 'View from China'=>'blog/china',
+ 'Web design & Free Software'=>'blog/web-design-and-free-software',
+ 'ZDNet Government'=>'blog/government',
+ 'ZDNet UK Book Reviews'=>'blog/zdnet-uk-book-reviews',
+ 'ZDNet UK First Take'=>'blog/zdnet-uk-first-take',
+ 'Zero Day'=>'blog/security'
+ ),
+ 'ZDNet Hot Topics RSS:'=>array(
+ 'Apple'=>'topic/apple',
+ 'Collaboration'=>'topic/collaboration',
+ 'Enterprise Software'=>'topic/enterprise-software',
+ 'Google'=>'topic/google',
+ 'Great debate'=>'topic/great-debate',
+ 'Hardware'=>'topic/hardware',
+ 'IBM'=>'topic/ibm',
+ 'iOS'=>'topic/ios',
+ 'iPhone'=>'topic/iphone',
+ 'iPad'=>'topic/ipad',
+ 'IT Priorities'=>'topic/it-priorities',
+ 'Laptops'=>'topic/laptops',
+ 'Legal'=>'topic/legal',
+ 'Linux'=>'topic/linux',
+ 'Microsoft'=>'topic/microsoft',
+ 'Mobile OS'=>'topic/mobile-os',
+ 'Mobility'=>'topic/mobility',
+ 'Networking'=>'topic/networking',
+ 'Oracle'=>'topic/oracle',
+ 'Processors'=>'topic/processors',
+ 'Samsung'=>'topic/samsung',
+ 'Security'=>'topic/security',
+ 'Small business: going big on mobility'=>'topic/small-business-going-big-on-mobility'
+ ),
+ 'Product Blogs:'=>array(
+ 'Digital Cameras & Camcorders'=>'blog/digitalcameras',
+ 'Home Theater'=>'blog/home-theater',
+ 'Laptops and Desktops'=>'blog/computers',
+ 'The Mobile Gadgeteer'=>'blog/mobile-gadgeteer',
+ 'Smartphones and Cell Phones'=>'blog/cell-phones',
+ 'The ToyBox'=>'blog/gadgetreviews'
+ ),
+ 'Vertical Blogs:'=>array(
+ 'ZDNet Education'=>'blog/education',
+ 'ZDNet Healthcare'=>'blog/healthcare',
+ 'ZDNet Government'=>'blog/government'
+ )
+ )
+ )
+ );
}
public function collectData(array $param) {
diff --git a/bridges/ZoneTelechargementBridge.php b/bridges/ZoneTelechargementBridge.php
index a0338f50..70f10f4e 100644
--- a/bridges/ZoneTelechargementBridge.php
+++ b/bridges/ZoneTelechargementBridge.php
@@ -8,13 +8,9 @@ class ZoneTelechargementBridge extends BridgeAbstract {
$this->uri = 'https://www.zone-telechargement.com/';
$this->description = 'RSS proxy returning the newest releases.
You may specify a category found in RSS URLs, else main feed is selected.';
- $this->parameters[] =
- '[
- {
- "name" : "Category",
- "identifier" : "category"
- }
- ]';
+ $this->parameters[] = array(
+ 'category'=>array('name'=>'Category')
+ );
}
public function collectData(array $param) {