diff --git a/bridges/AllocineFRBridge.php b/bridges/AllocineFRBridge.php
index 6bf5cce..c95fcf7 100644
--- a/bridges/AllocineFRBridge.php
+++ b/bridges/AllocineFRBridge.php
@@ -1,17 +1,19 @@
maintainer = "superbaillot.net";
+ $this->name = "Allo Cine : Faux Raccord";
+ $this->uri = "http://www.allocine.fr/video/programme-12284/saison-24580/";
+ $this->description = "Allo Cine : Faux Raccord";
+ $this->update = "07/11/2013";
+
+ }
+
public function collectData(array $param){
$html = file_get_html($this->_URL) or $this->returnError('Could not request Allo cine.', 404);
diff --git a/bridges/AllocineT5Bridge.php b/bridges/AllocineT5Bridge.php
index f763428..b52df28 100644
--- a/bridges/AllocineT5Bridge.php
+++ b/bridges/AllocineT5Bridge.php
@@ -1,17 +1,19 @@
maintainer = "superbaillot.net";
+ $this->name = "Allo Cine : Top 5";
+ $this->uri = "http://www.allocine.fr/video/programme-12299/saison-22542/";
+ $this->description = "Allo Cine : Top 5 via rss-bridge";
+ $this->update = "07/11/2013";
+
+ }
+
public function collectData(array $param){
$html = file_get_html($this->_URL) or $this->returnError('Could not request Allo cine.', 404);
diff --git a/bridges/AllocineTueursEnSerieBridge.php b/bridges/AllocineTueursEnSerieBridge.php
index 772c870..4320c01 100644
--- a/bridges/AllocineTueursEnSerieBridge.php
+++ b/bridges/AllocineTueursEnSerieBridge.php
@@ -1,17 +1,19 @@
maintainer = "superbaillot.net";
+ $this->name = "Allo Cine : Tueurs En Serie";
+ $this->uri = "http://www.allocine.fr/video/programme-12286/saison-22938/";
+ $this->description = "Allo Cine : Tueurs En Serie";
+ $this->update = "12/11/2013";
+
+ }
+
public function collectData(array $param){
$html = file_get_html($this->_URL) or $this->returnError('Could not request Allo cine.', 404);
diff --git a/bridges/AnimeUltimeBridge.php b/bridges/AnimeUltimeBridge.php
index 9c89afe..97955de 100644
--- a/bridges/AnimeUltimeBridge.php
+++ b/bridges/AnimeUltimeBridge.php
@@ -14,6 +14,45 @@ class AnimeUltimeBridge extends BridgeAbstract {
private $filter = 'Releases';
+ public function loadMetadatas() {
+
+ $this->maintainer = "ORelio";
+ $this->name = "Anime-Ultime";
+ $this->uri = "http://www.anime-ultime.net/";
+ $this->description = "Returns the 10 newest releases posted on Anime-Ultime";
+ $this->update = "2015-10-30";
+
+ $this->parameters[] =
+ '[
+ {
+ "name" : "Type",
+ "type" : "list",
+ "identifier" : "type",
+ "values" : [
+ {
+ "name" : "everything",
+ "value" : ""
+
+ },
+ {
+ "name" : "Anime",
+ "value" : "A"
+
+ },
+ {
+ "name" : "Drama",
+ "value" : "D"
+ },
+ {
+ "name" : "Tokusatsu",
+ "value" : "T"
+
+ }
+ ]
+ }
+ ]';
+ }
+
public function collectData(array $param) {
//Add type filter if provided
diff --git a/bridges/Arte7Bridge.php b/bridges/Arte7Bridge.php
index fa4dbda..005c94e 100644
--- a/bridges/Arte7Bridge.php
+++ b/bridges/Arte7Bridge.php
@@ -1,15 +1,4 @@
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")
-* @use2(list|catde="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")
-*/
class Arte7Bridge extends BridgeAbstract{
public function loadMetadatas() {
@@ -41,6 +30,26 @@ class Arte7Bridge extends BridgeAbstract{
{
"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"
}
]
@@ -49,6 +58,55 @@ class Arte7Bridge extends BridgeAbstract{
}
]';
+ $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"
+ }
+ ]
+
+
+ }
+
+ ]';
}
diff --git a/bridges/BandcampBridge.php b/bridges/BandcampBridge.php
index 22f213e..8d1d2aa 100644
--- a/bridges/BandcampBridge.php
+++ b/bridges/BandcampBridge.php
@@ -1,18 +1,27 @@
maintainer = "sebsauvage";
+ $this->name = "Bandcamp Tag";
+ $this->uri = "http://bandcamp.com/";
+ $this->description = "New bandcamp release by tag";
+ $this->update = "2014-05-25";
+
+ $this->parameters[] =
+ '[
+ {
+ "name" : "tag",
+ "type" : "text",
+ "identifier" : "tag"
+
+ }
+ ]';
+ }
+
public function collectData(array $param){
$html = '';
if (isset($param['tag'])) {
diff --git a/bridges/BooruprojectBridge.php b/bridges/BooruprojectBridge.php
index 980d8a8..7440cc2 100644
--- a/bridges/BooruprojectBridge.php
+++ b/bridges/BooruprojectBridge.php
@@ -1,17 +1,35 @@
maintainer = "mitsukarenai";
+ $this->name = "Booruproject";
+ $this->uri = "http://booru.org/";
+ $this->description = "Returns images from given page and booruproject instance (****.booru.org)";
+ $this->update = "2015-09-12";
+
+ $this->parameters[] =
+ '[
+ {
+ "name" : "instance (required)",
+ "required" : "true",
+ "identifier" : "i"
+ },
+ {
+ "name" : "page",
+ "identifier" : "p"
+ },
+ {
+ "name" : "tags",
+ "identifier" : "t"
+ }
+
+
+ ]';
+ }
+
+
public function collectData(array $param){
$page = 0; $tags = '';
if (!empty($param['p'])) {
diff --git a/bridges/CNETBridge.php b/bridges/CNETBridge.php
index 0450d1e..28ada05 100644
--- a/bridges/CNETBridge.php
+++ b/bridges/CNETBridge.php
@@ -1,20 +1,25 @@
You may specify a topic, else all topics are selected.
-* @maintainer ORelio
-* @update 2015-09-10
-* @use1(topic="Topic name")
-*/
class CNETBridge extends BridgeAbstract {
private $topicName = '';
+ public function loadMetadatas() {
+
+ $this->maintainer = "ORelio";
+ $this->name = "CNET News";
+ $this->uri = "http://www.cnet.com/";
+ $this->description = "Returns the newest articles.
You may specify a topic, else all topics are selected.";
+ $this->update = "2015-09-10";
+
+ $this->parameters[] =
+ '[
+ {
+ "name" : "Topic name",
+ "identifier" : "topic"
+ }
+ ]';
+ }
+
public function collectData(array $param) {
function ExtractFromDelimiters($string, $start, $end) {
diff --git a/bridges/CryptomeBridge.php b/bridges/CryptomeBridge.php
index 59b6dbd..e12e0c3 100644
--- a/bridges/CryptomeBridge.php
+++ b/bridges/CryptomeBridge.php
@@ -13,6 +13,26 @@
*/
class CryptomeBridge extends BridgeAbstract{
+ public function loadMetadatas() {
+
+ $this->maintainer = "BoboTiG";
+ $this->name = "Cryptome";
+ $this->uri = "http://cryptome.org/";
+ $this->description = "Returns the N most recent documents.";
+ $this->update = "";
+
+ $this->parameters[] =
+ '[
+ {
+ "name" : "number of elements",
+ "identifier" : "n",
+ "type" : "number",
+ "exampleValue" : "10"
+ }
+ ]';
+ }
+
+
public function collectData(array $param){
$html = '';
$num = 20;
diff --git a/bridges/DailymotionBridge.php b/bridges/DailymotionBridge.php
index 01202fe..357f2ea 100644
--- a/bridges/DailymotionBridge.php
+++ b/bridges/DailymotionBridge.php
@@ -1,22 +1,48 @@
maintainer = "mitsukarenai";
+ $this->name = "Dailymotion Bridge";
+ $this->uri = "https://www.dailymotion.com/";
+ $this->description = "Returns the 5 newest videos by username/playlist or search";
+ $this->update = "2014-11-18";
+
+ $this->parameters["By username"] =
+ '[
+ {
+ "name" : "username",
+ "identifier" : "u"
+ }
+ ]';
+
+ $this->parameters["By playlist id"] =
+ '[
+ {
+ "name" : "playlist id",
+ "identifier" : "p",
+ "type" : "number"
+ }
+ ]';
+
+ $this->parameters["From search results"] =
+ '[
+ {
+ "name" : "Search keyword",
+ "identifier" : "s"
+ },
+ {
+ "name" : "Page",
+ "identifier" : "pa",
+ "type" : "number"
+ }
+ ]';
+ }
+
+
public function collectData(array $param){
function getMetadata($id) {
diff --git a/bridges/DanbooruBridge.php b/bridges/DanbooruBridge.php
index 5cdd4dc..790b198 100644
--- a/bridges/DanbooruBridge.php
+++ b/bridges/DanbooruBridge.php
@@ -1,17 +1,28 @@
maintainer = "mitsukarenai";
+ $this->name = "Danbooru";
+ $this->uri = "http://donmai.us/";
+ $this->description = "Returns images from given page";
+ $this->update = "2014-05-25";
+
+ $this->parameters[] =
+ '[
+ {
+ "name" : "page",
+ "identifier" : "p"
+ },
+ {
+ "name" : "tags",
+ "identifier" : "t"
+ }
+ ]';
+
+ }
+
public function collectData(array $param){
$page = 1;$tags='';
if (isset($param['p'])) {
diff --git a/bridges/DauphineLibereBridge.php b/bridges/DauphineLibereBridge.php
index 9ce39ae..3721876 100644
--- a/bridges/DauphineLibereBridge.php
+++ b/bridges/DauphineLibereBridge.php
@@ -1,13 +1,88 @@
;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;Isère Nord=>isere-nord;Savoie=>savoie;Haute-Savoie=>haute-savoie;Vaucluse=>vaucluse")
-*/
class DauphineLibereBridge extends BridgeAbstract{
-
+
+ public function loadMetadatas() {
+
+ $this->maintainer = "qwertygc";
+ $this->name = "DauphineLibereBridge Bridge";
+ $this->uri = "http://www.ledauphine.com/";
+ $this->description = "Returns the newest articles.";
+ $this->update = "05/11/2015";
+
+
+ $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"
+ }
+ ]
+ }
+ ]';
+ }
+
+
public function collectData(array $param){
diff --git a/bridges/DollbooruBridge.php b/bridges/DollbooruBridge.php
index 631396e..637fa48 100644
--- a/bridges/DollbooruBridge.php
+++ b/bridges/DollbooruBridge.php
@@ -1,17 +1,29 @@
maintainer = "mitsukarenai";
+ $this->name = "Dollbooru";
+ $this->uri = "http://dollbooru.org/";
+ $this->description = "Returns images from given page";
+ $this->update = "2015-01-20";
+
+
+ $this->parameters[] =
+ '[
+ {
+ "name" : "page",
+ "type" : "number",
+ "identifier" : "p"
+ },
+ {
+ "name" : "tags",
+ "identifier" : "t"
+ }
+ ]';
+ }
+
public function collectData(array $param){
$page = 0;$tags='';
if (isset($param['p'])) {
diff --git a/bridges/DuckDuckGoBridge.php b/bridges/DuckDuckGoBridge.php
index 40c86c6..f0e5b9a 100644
--- a/bridges/DuckDuckGoBridge.php
+++ b/bridges/DuckDuckGoBridge.php
@@ -1,18 +1,23 @@
maintainer = "Astalaseven";
+ $this->name = "DuckDuckGo";
+ $this->uri = "https://duckduckgo.com/";
+ $this->description = "Returns most recent results from DuckDuckGo.";
+ $this->update = "2014-05-25";
+
+ $this->parameters[] =
+ '[
+ {
+ "name" : "keyword",
+ "identifier" : "u"
+ }
+ ]';
+ }
+
public function collectData(array $param){
$html = '';
$link = 'http://duckduckgo.com/html/?q='.$param[u].'+sort:date';
diff --git a/bridges/EZTVBridge.php b/bridges/EZTVBridge.php
index 3f66ea4..c58348a 100644
--- a/bridges/EZTVBridge.php
+++ b/bridges/EZTVBridge.php
@@ -1,19 +1,25 @@
maintainer = "alexAubin";
+ $this->name = "EZTV";
+ $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->update = "2014-01-20";
+
+ $this->parameters[] =
+ '[
+ {
+ "name" : "Show ids",
+ "identifier" : "i",
+ "exampleValue" : "showID1,showID2,..."
+ }
+ ]';
+
+ }
+
public function collectData(array $param){
// Make timestamp from relative released time in table
diff --git a/bridges/FacebookBridge.php b/bridges/FacebookBridge.php
index dc37d5e..98e7e8b 100644
--- a/bridges/FacebookBridge.php
+++ b/bridges/FacebookBridge.php
@@ -1,15 +1,22 @@
maintainer = "teromene";
+ $this->name = "Facebook";
+ $this->uri = "http://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->update = "23/10/2015";
+
+ $this->parameters[] =
+ '[
+ {
+ "name" : "Username",
+ "identifier" : "u"
+ }
+ ]';
+ }
public function collectData(array $param){
diff --git a/bridges/FlickrExploreBridge.php b/bridges/FlickrExploreBridge.php
index f5ad292..c39c489 100644
--- a/bridges/FlickrExploreBridge.php
+++ b/bridges/FlickrExploreBridge.php
@@ -1,16 +1,16 @@
maintainer = "sebsauvage";
+ $this->name = "Flickr Explore";
+ $this->uri = "http://www.flickr.com/explore";
+ $this->description = "Returns the latest interesting images from Flickr";
+ $this->update = "2014-05-25";
+
+ }
+
public function collectData(array $param){
$html = file_get_html('http://www.flickr.com/explore') or $this->returnError('Could not request Flickr.', 404);
diff --git a/bridges/FlickrTagBridge.php b/bridges/FlickrTagBridge.php
index fa274b1..1997753 100644
--- a/bridges/FlickrTagBridge.php
+++ b/bridges/FlickrTagBridge.php
@@ -1,18 +1,31 @@
maintainer = "erwang";
+ $this->name = "Flickr TagUser";
+ $this->uri = "http://www.flickr.com/";
+ $this->description = "Returns the tagged or user images from Flickr";
+ $this->update = "2014-05-26";
+
+ $this->parameters["By keyword"] =
+ '[
+ {
+ "name" : "Keyword",
+ "identifier" : "q"
+ }
+ ]';
+
+ $this->parameters["By username"] =
+ '[
+ {
+ "name" : "Username",
+ "identifier" : "u"
+ }
+ ]';
+ }
+
public function collectData(array $param){
$html = file_get_html('http://www.flickr.com/search/?q=vendee&s=rec') or $this->returnError('Could not request Flickr.', 404);
if (isset($param['q'])) { /* keyword search mode */
diff --git a/bridges/FourchanBridge.php b/bridges/FourchanBridge.php
index d67b68b..70f0477 100644
--- a/bridges/FourchanBridge.php
+++ b/bridges/FourchanBridge.php
@@ -1,16 +1,24 @@
maintainer = "mitsukarenai";
+ $this->name = "4chan";
+ $this->uri = "https://www.4chan.org/";
+ $this->description = "Returns posts from the specified thread";
+ $this->update = "2015-02-01";
+
+ $this->parameters[] =
+ '[
+ {
+ "name" : "Thread URL",
+ "identifier" : "t"
+ }
+ ]';
+ }
+
+
public function collectData(array $param){
if (!isset($param['t']))
diff --git a/bridges/Freenews.php b/bridges/Freenews.php
index 65c0329..e1cf094 100644
--- a/bridges/Freenews.php
+++ b/bridges/Freenews.php
@@ -1,14 +1,25 @@
maintainer = "mitsukarenai";
+ $this->name = "Freenews";
+ $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->update = "26/03/2014";
+
+ $this->parameters[] =
+ '[
+ {
+ "name" : "Id de la rubrique (sans le \'-\')",
+ "identifier" : "id"
+ }
+ ]';
+ }
+
public function collectData(array $param){
$param['url'] = RSS;
parent::collectData($param);
diff --git a/bridges/Gawker.php b/bridges/Gawker.php
index f8b484f..08a42f5 100644
--- a/bridges/Gawker.php
+++ b/bridges/Gawker.php
@@ -1,16 +1,27 @@
maintainer = "mitsukarenai";
+ $this->name = "Gawker media";
+ $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->update = "27/03/2014";
+
+ $this->parameters[] =
+ '[
+ {
+ "name" : "site id to put in uri between feeds.gawker.com and /full .. which is obviously not full AT ALL",
+ "identifier" : "site"
+ }
+ ]';
+ }
+
+
private function toURI($name) {
return RSS_PREFIX.$name.RSS_SUFFIX;
}
diff --git a/bridges/GelbooruBridge.php b/bridges/GelbooruBridge.php
index 86d77a7..3747c40 100644
--- a/bridges/GelbooruBridge.php
+++ b/bridges/GelbooruBridge.php
@@ -1,17 +1,29 @@
maintainer = "mitsukarenai";
+ $this->name = "Gelbooru";
+ $this->uri = "http://gelbooru.com/";
+ $this->description = "Returns images from given page";
+ $this->update = "2014-05-25";
+
+ $this->parameters[] =
+ '[
+ {
+ "name" : "page",
+ "identifier" : "p",
+ "type" : "number"
+ },
+ {
+ "name" : "tags",
+ "identifier" : "t"
+ }
+ ]';
+
+ }
+
public function collectData(array $param){
$page = 0;
if (isset($param['p'])) {
diff --git a/bridges/GiphyBridge.php b/bridges/GiphyBridge.php
index f3c0d99..69442f6 100644
--- a/bridges/GiphyBridge.php
+++ b/bridges/GiphyBridge.php
@@ -1,21 +1,34 @@
maintainer = "kraoc";
+ $this->name = "Giphy Bridge";
+ $this->uri = "http://giphy.com/";
+ $this->description = "Bridge for giphy.com";
+ $this->update = "2014-12-05";
+
+ $this->parameters["By tag"] =
+ '[
+ {
+ "name" : "search tag",
+ "identifier" : "s"
+ }
+ ]';
+
+ $this->parameters["Without tag"] =
+ '[
+ {
+ "name" : "max number of returned items",
+ "type" : "number",
+ "identifier" : "n"
+ }
+ ]';
+ }
+
public function collectData(array $param){
$html = '';
$base_url = 'http://giphy.com';
diff --git a/bridges/GooglePlusPostBridge.php b/bridges/GooglePlusPostBridge.php
index ab77dee..16b3f10 100644
--- a/bridges/GooglePlusPostBridge.php
+++ b/bridges/GooglePlusPostBridge.php
@@ -1,21 +1,27 @@
maintainer = "Grummfy";
+ $this->name = "Google Plus Post Bridge";
+ $this->uri = "http://plus.google.com/";
+ $this->description = "Returns user public post (without API).";
+ $this->update = "2014-07-20";
+
+ $this->parameters[] =
+ '[
+ {
+ "name" : "username or Id",
+ "identifier" : "username"
+ }
+ ]';
+
+ }
+
const GOOGLE_PLUS_BASE_URL = 'https://plus.google.com/';
public function collectData(array $param)
diff --git a/bridges/GoogleSearchBridge.php b/bridges/GoogleSearchBridge.php
index 464b902..a76b26d 100644
--- a/bridges/GoogleSearchBridge.php
+++ b/bridges/GoogleSearchBridge.php
@@ -1,25 +1,35 @@
maintainer = "sebsauvage";
+ $this->name = "Google search";
+ $this->uri = "https://www.google.com/";
+ $this->description = "Returns most recent results from Google search.";
+ $this->update = "2014-05-25";
+
+ $this->parameters[] =
+ '[
+ {
+ "name" : "keyword",
+ "identifier" : "q"
+ }
+ ]';
+
+ }
+
+
public function collectData(array $param){
$html = '';
diff --git a/bridges/HDWallpapersBridge.php b/bridges/HDWallpapersBridge.php
index befdacc..0fc9aaa 100644
--- a/bridges/HDWallpapersBridge.php
+++ b/bridges/HDWallpapersBridge.php
@@ -1,20 +1,35 @@
maintainer = "nel50n";
+ $this->name = "HD Wallpapers Bridge";
+ $this->uri = "http://www.hdwallpapers.in/";
+ $this->description = "Returns the latests wallpapers from HDWallpapers";
+ $this->update = "2015-04-08";
+
+ $this->parameters[] =
+ '[
+ {
+ "name" : "category",
+ "identifier" : "c"
+ },
+ {
+ "name" : "max number of wallpapers",
+ "identifier" : "m"
+ },
+ {
+ "name" : "resolution",
+ "identifier" : "r",
+ "exampleValue" : "1920x1200, 1680x1050, ..."
+ }
+ ]';
+ }
+
public function collectData(array $param){
$html = '';
$baseUri = 'http://www.hdwallpapers.in';
diff --git a/bridges/IdenticaBridge.php b/bridges/IdenticaBridge.php
index 60ab788..c5562ee 100644
--- a/bridges/IdenticaBridge.php
+++ b/bridges/IdenticaBridge.php
@@ -1,18 +1,26 @@
maintainer = "mitsukarenai";
+ $this->name = "Identica Bridge";
+ $this->uri = "https://identi.ca/";
+ $this->description = "Returns user timelines";
+ $this->update = "2014-05-25";
+
+ $this->parameters[] =
+ '[
+ {
+ "name" : "username",
+ "identifier" : "u"
+ }
+ ]';
+
+ }
+
public function collectData(array $param){
$html = '';
if (isset($param['u'])) { /* user timeline mode */
diff --git a/bridges/InstagramBridge.php b/bridges/InstagramBridge.php
index 93e1a18..a137eee 100644
--- a/bridges/InstagramBridge.php
+++ b/bridges/InstagramBridge.php
@@ -1,19 +1,26 @@
maintainer = "pauder";
+ $this->name = "Instagram Bridge";
+ $this->uri = "http://instagram.com/";
+ $this->description = "Returns the newest images";
+ $this->update = "2014-05-25";
+
+ $this->parameters[] =
+ '[
+ {
+ "name" : "username",
+ "identifier" : "u"
+ }
+ ]';
+
+ }
+
public function collectData(array $param){
$html = '';
if (isset($param['u'])) { /* user timeline mode */
diff --git a/bridges/KonachanBridge.php b/bridges/KonachanBridge.php
index b4df407..7c4e862 100644
--- a/bridges/KonachanBridge.php
+++ b/bridges/KonachanBridge.php
@@ -1,17 +1,28 @@
maintainer = "mitsukarenai";
+ $this->name = "Konachan";
+ $this->uri = "http://konachan.com/";
+ $this->description = "Returns images from given page";
+ $this->update = "2014-05-25";
+
+ $this->parameters[] =
+ '[
+ {
+ "name" : "page",
+ "identifier" : "p",
+ "type" : "number"
+ },
+ {
+ "name" : "tags",
+ "identifier" : "t"
+ }
+ ]';
+ }
+
public function collectData(array $param){
$page = 1;$tags='';
if (isset($param['p'])) {
diff --git a/bridges/LeBonCoinBridge.php b/bridges/LeBonCoinBridge.php
index 3a1df70..1563b65 100755
--- a/bridges/LeBonCoinBridge.php
+++ b/bridges/LeBonCoinBridge.php
@@ -14,6 +14,136 @@
class LeBonCoinBridge extends BridgeAbstract{
+ public function loadMetadatas() {
+
+ $this->maintainer = "16mhz";
+ $this->name = "LeBonCoin";
+ $this->uri = "http://www.leboncoin.fr";
+ $this->description = "Returns most recent results from LeBonCoin for a region and a keyword.";
+ $this->update = "2015-10-30";
+
+ $this->parameters[] =
+ '[
+ {
+ "name" : "Keyword",
+ "identifier" : "k"
+ },
+ {
+ "name" : "Région",
+ "identifier" : "r",
+ "type" : "list",
+ "values" : [
+ {
+ "name" : "Alsace",
+ "value" : "alsace"
+ },
+ {
+ "name" : "Aquitaine",
+ "value" : "aquitaine"
+ },
+ {
+ "name" : "Auvergne",
+ "value" : "auvergne"
+ },
+ {
+ "name" : "Basse Normandie",
+ "value" : "basse_normandie"
+ },
+ {
+ "name" : "Bourgogne",
+ "value" : "bourgogne"
+ },
+ {
+ "name" : "Bretagne",
+ "value" : "bretagne"
+ },
+ {
+ "name" : "Centre",
+ "value" : "centre"
+ },
+ {
+ "name" : "Champagne Ardenne",
+ "value" : "champagne_ardenne"
+ },
+ {
+ "name" : "Corse",
+ "value" : "corse"
+ },
+ {
+ "name" : "Franche Comté",
+ "value" : "franche_comte"
+ },
+ {
+ "name" : "Haute Normandie",
+ "value" : "haute_normandie"
+ },
+ {
+ "name" : "Ile de France",
+ "value" : "ile_de_france"
+ },
+ {
+ "name" : "Languedoc Roussillon",
+ "value" : "languedoc_roussillon"
+ },
+ {
+ "name" : "Limousin",
+ "value" : "limousin"
+ },
+ {
+ "name" : "Lorraine",
+ "value" : "lorraine"
+ },
+ {
+ "name" : "Midi Pyrénées",
+ "value" : "midi_pyrenees"
+ },
+ {
+ "name" : "Nord Pas De Calais",
+ "value" : "nord_pas_de_calais"
+ },
+ {
+ "name" : "Pays de la Loire",
+ "value" : "pays_de_la_loire"
+ },
+ {
+ "name" : "Picardie",
+ "value" : "picardie"
+ },
+ {
+ "name" : "Poitou Charentes",
+ "value" : "poitou_charentes"
+ },
+ {
+ "name" : "Provence Alpes Côte d\'Azur",
+ "value" : "provence_alpes_cote_d_azur"
+ },
+ {
+ "name" : "Rhône-Alpes",
+ "value" : "rhone_alpes"
+ },
+ {
+ "name" : "Guadeloupe",
+ "value" : "guadeloupe"
+ },
+ {
+ "name" : "Martinique",
+ "value" : "martinique"
+ },
+ {
+ "name" : "Guyane",
+ "value" : "guyane"
+ },
+ {
+ "name" : "Réunion",
+ "value" : "reunion"
+ }
+ ]
+ }
+ ]';
+
+ }
+
+
public function collectData(array $param){
$html = '';
diff --git a/bridges/LolibooruBridge.php b/bridges/LolibooruBridge.php
index 5411131..38fe475 100644
--- a/bridges/LolibooruBridge.php
+++ b/bridges/LolibooruBridge.php
@@ -1,17 +1,29 @@
maintainer = "mitsukarenai";
+ $this->name = "Lolibooru";
+ $this->uri = "http://lolibooru.moe/";
+ $this->description = "Returns images from given page and tags";
+ $this->update = "2015-03-21";
+
+ $this->parameters[] =
+ '[
+ {
+ "name" : "page",
+ "identifier" : "p",
+ "type" : "number"
+ },
+ {
+ "name" : "tags",
+ "identifier" : "t"
+ }
+ ]';
+
+ }
+
public function collectData(array $param){
$page = 1; $tags = '';
if (isset($param['p'])) {
diff --git a/bridges/MilbooruBridge.php b/bridges/MilbooruBridge.php
index 9059fa7..cc8e9da 100644
--- a/bridges/MilbooruBridge.php
+++ b/bridges/MilbooruBridge.php
@@ -1,17 +1,28 @@
maintainer = "mitsukarenai";
+ $this->name = "Milbooru";
+ $this->uri = "http://sheslostcontrol.net/moe/shimmie/";
+ $this->description = "Returns images from given page";
+ $this->update = "2014-05-25";
+
+ $this->parameters[] =
+ '[
+ {
+ "name" : "page",
+ "identifier" : "p",
+ "type" : "number"
+ },
+ {
+ "name" : "tags",
+ "identifier" : "t"
+ }
+ ]';
+ }
+
public function collectData(array $param){
$page = 0;$tags='';
if (isset($param['p'])) {
diff --git a/bridges/MspabooruBridge.php b/bridges/MspabooruBridge.php
index b3d3b61..f949026 100644
--- a/bridges/MspabooruBridge.php
+++ b/bridges/MspabooruBridge.php
@@ -12,6 +12,29 @@
*/
class MspabooruBridge extends BridgeAbstract{
+ public function loadMetadatas() {
+
+ $this->maintainer = "mitsukarenai";
+ $this->name = "Mspabooru";
+ $this->uri = "http://mspabooru.com/";
+ $this->description = "Returns images from given page";
+ $this->update = "2014-05-25";
+
+ $this->parameters[] =
+ '[
+ {
+ "name" : "page",
+ "identifier" : "p",
+ "type" : "number"
+ },
+ {
+ "name" : "tags",
+ "identifier" : "t"
+ }
+ ]';
+
+ }
+
public function collectData(array $param){
$page = 0;$tags='';
if (isset($param['p'])) {
diff --git a/bridges/OpenClassroomsBridge.php b/bridges/OpenClassroomsBridge.php
index 0c8eda7..c3ae019 100644
--- a/bridges/OpenClassroomsBridge.php
+++ b/bridges/OpenClassroomsBridge.php
@@ -1,18 +1,64 @@
arts;Code=>code;Design=>design;Entreprise=>business;Numérique=>digital;Sciences=>sciences;Sciences humaines=>humanities;Systèmes d'information=>it;Autres=>others")
-*/
class OpenClassroomsBridge extends BridgeAbstract{
+ public function loadMetadatas() {
+
+ $this->maintainer = "sebsauvage";
+ $this->name = "OpenClassrooms Bridge";
+ $this->uri = "https://openclassrooms.com/";
+ $this->description = "Returns latest tutorials from OpenClassrooms.";
+ $this->update = "2015-10-30";
+
+
+ $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"
+ }
+ ]
+ }
+ ]';
+ }
+
+
public function collectData(array $param){
if (empty($param['u']))
{
diff --git a/bridges/ParuVenduImmoBridge.php b/bridges/ParuVenduImmoBridge.php
index e145350..a9c38ea 100644
--- a/bridges/ParuVenduImmoBridge.php
+++ b/bridges/ParuVenduImmoBridge.php
@@ -1,19 +1,45 @@
maintainer = "polo2ro";
+ $this->name = "Paru Vendu Immobilier";
+ $this->uri = "http://www.paruvendu.fr/immobilier/";
+ $this->description = "Returns the ads from the first page of search result.";
+ $this->update = "2015-02-02";
+
+
+ $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"
+ }
+
+ ]';
+ }
+
public function collectData(array $param)
{
$html = '';
diff --git a/bridges/PickyWallpapersBridge.php b/bridges/PickyWallpapersBridge.php
index 1f47a5c..87cfb16 100644
--- a/bridges/PickyWallpapersBridge.php
+++ b/bridges/PickyWallpapersBridge.php
@@ -1,21 +1,42 @@
maintainer = "nel50n";
+ $this->name = "PickyWallpapers Bridge";
+ $this->uri = "http://www.pickywallpapers.com/";
+ $this->description = "Returns the latests wallpapers from PickyWallpapers";
+ $this->update = "2014-03-31";
+
+ $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, ..."
+ }
+
+ ]';
+ }
+
public function collectData(array $param){
$html = '';
if (!isset($param['c'])) {
diff --git a/bridges/PinterestBridge.php b/bridges/PinterestBridge.php
index 0f23bb6..3bb0530 100644
--- a/bridges/PinterestBridge.php
+++ b/bridges/PinterestBridge.php
@@ -1,22 +1,40 @@
maintainer = "pauder";
+ $this->name = "Pinterest Bridge";
+ $this->uri = "http://www.pinterest.com/";
+ $this->description = "Returns the newest images on a board";
+ $this->update = "2014-05-25";
+
+ $this->parameters["By username and board"] =
+ '[
+ {
+ "name" : "username",
+ "identifier" : "u"
+ },
+ {
+ "name" : "board",
+ "identifier" : "b"
+
+ }
+ ]';
+
+ $this->parameters["From search"] =
+ '[
+ {
+ "name" : "Keyword",
+ "identifier" : "q"
+ }
+ ]';
+ }
+
public function collectData(array $param){
$html = '';
if (isset($param['u']) || isset($param['b'])) {
diff --git a/bridges/Rule34Bridge.php b/bridges/Rule34Bridge.php
index f7f05f0..cda601d 100644
--- a/bridges/Rule34Bridge.php
+++ b/bridges/Rule34Bridge.php
@@ -1,17 +1,28 @@
maintainer = "mitsukarenai";
+ $this->name = "Rule34";
+ $this->uri = "http://rule34.xxx/";
+ $this->description = "Returns images from given page";
+ $this->update = "2014-05-25";
+
+ $this->parameters[] =
+ '[
+ {
+ "name" : "page",
+ "identifier" : "p",
+ "type" : "number"
+ },
+ {
+ "name" : "tags",
+ "identifier" : "t"
+ }
+ ]';
+ }
+
public function collectData(array $param){
$page = 0;$tags='';
if (isset($param['p'])) {
diff --git a/bridges/Rule34pahealBridge.php b/bridges/Rule34pahealBridge.php
index 5bfe920..3ecab15 100644
--- a/bridges/Rule34pahealBridge.php
+++ b/bridges/Rule34pahealBridge.php
@@ -1,17 +1,29 @@
maintainer = "mitsukarenai";
+ $this->name = "Rule34paheal";
+ $this->uri = "http://rule34.paheal.net/";
+ $this->description = "Returns images from given page";
+ $this->update = "2014-05-25";
+
+ $this->parameters[] =
+ '[
+ {
+ "name" : "page",
+ "identifier" : "p",
+ "type" : "number"
+ },
+ {
+ "name" : "tags",
+ "identifier" : "t"
+ }
+ ]';
+ }
+
+
public function collectData(array $param){
$page = 0;$tags='';
if (isset($param['p'])) {
diff --git a/bridges/SafebooruBridge.php b/bridges/SafebooruBridge.php
index d33b0d7..07d702d 100644
--- a/bridges/SafebooruBridge.php
+++ b/bridges/SafebooruBridge.php
@@ -1,17 +1,29 @@
maintainer = "mitsukarenai";
+ $this->name = "Safebooru";
+ $this->uri = "http://safebooru.org/";
+ $this->description = "Returns images from given page";
+ $this->update = "2014-05-25";
+
+ $this->parameters[] =
+ '[
+ {
+ "name" : "page",
+ "identifier" : "p",
+ "type" : "number"
+ },
+ {
+ "name" : "tags",
+ "identifier" : "t"
+ }
+ ]';
+
+ }
+
public function collectData(array $param){
$page = 0;$tags='';
if (isset($param['p'])) {
diff --git a/bridges/SakugabooruBridge.php b/bridges/SakugabooruBridge.php
index 860be57..0a99b43 100644
--- a/bridges/SakugabooruBridge.php
+++ b/bridges/SakugabooruBridge.php
@@ -1,17 +1,28 @@
maintainer = "mitsukarenai";
+ $this->name = "Sakugabooru";
+ $this->uri = "http://sakuga.yshi.org/";
+ $this->description = "Returns images from given page";
+ $this->update = "2014-05-25";
+
+ $this->parameters[] =
+ '[
+ {
+ "name" : "page",
+ "identifier" : "p",
+ "type" : "number"
+ },
+ {
+ "name" : "tags",
+ "identifier" : "t"
+ }
+ ]';
+ }
+
public function collectData(array $param){
$page = 1;$tags='';
if (isset($param['p'])) {
diff --git a/bridges/ScoopItBridge.php b/bridges/ScoopItBridge.php
index d8d7127..65511a4 100644
--- a/bridges/ScoopItBridge.php
+++ b/bridges/ScoopItBridge.php
@@ -1,18 +1,24 @@
maintainer = "Pitchoule";
+ $this->name = "ScoopIt";
+ $this->uri = "http://www.scoop.it";
+ $this->description = "Returns most recent results from ScoopIt.";
+ $this->update = "2014-06-13";
+
+ $this->parameters[] =
+ '[
+ {
+ "name" : "keyword",
+ "identifier" : "u"
+ }
+ ]';
+
+ }
+
public function collectData(array $param){
$html = '';
if ($param['u'] != '') {
diff --git a/bridges/SoundcloudBridge.php b/bridges/SoundcloudBridge.php
index 7bcc6d0..2b19b23 100644
--- a/bridges/SoundcloudBridge.php
+++ b/bridges/SoundcloudBridge.php
@@ -15,7 +15,26 @@ class SoundCloudBridge extends BridgeAbstract{
private $request;
public $name;
- const CLIENT_ID = '0aca19eae3843844e4053c6d8fdb7875';
+
+ public function loadMetadatas() {
+
+ $this->maintainer = "kranack";
+ $this->name = "Soundcloud Bridge";
+ $this->uri = "http://www.soundcloud.com/";
+ $this->description = "Returns 10 newest music from user profile";
+ $this->update = "2015-09-08";
+
+ $this->parameters[] =
+ '[
+ {
+ "name" : "username",
+ "identifier" : "u"
+ }
+ ]';
+
+ }
+
+ const CLIENT_ID = '0aca19eae3843844e4053c6d8fdb7875';
public function collectData(array $param){
diff --git a/bridges/SuperbWallpapersBridge.php b/bridges/SuperbWallpapersBridge.php
index c437d92..c996d79 100644
--- a/bridges/SuperbWallpapersBridge.php
+++ b/bridges/SuperbWallpapersBridge.php
@@ -1,20 +1,39 @@
maintainer = "nel50n";
+ $this->name = "Superb Wallpapers Bridge";
+ $this->uri = "http://www.superbwallpapers.com/";
+ $this->description = "Returns the latests wallpapers from SuperbWallpapers";
+ $this->update = "2015-04-08";
+
+ $this->parameters[] =
+ '[
+ {
+ "name" : "Category",
+ "identifier" : "c"
+ },
+ {
+ "name" : "Max number of wallpapers",
+ "identifier" : "m",
+ "type" : "number"
+ },
+ {
+ "name" : "resolution",
+ "identifier" : "r",
+ "exampleValue" : "1920x1200, 1680x1050, ..."
+ }
+
+ ]';
+
+ }
+
+
public function collectData(array $param){
$html = '';
$baseUri = 'http://www.superbwallpapers.com';
diff --git a/bridges/T411Bridge.php b/bridges/T411Bridge.php
index 8571bb0..db92a96 100644
--- a/bridges/T411Bridge.php
+++ b/bridges/T411Bridge.php
@@ -1,17 +1,24 @@
Use url part after '?' mark when using their search engine
- * @maintainer ORelio
- * @update 2015-10-22
- * @use1(search="search criteria")
- */
class T411Bridge extends BridgeAbstract {
+ public function loadMetadatas() {
+
+ $this->maintainer = "ORelio";
+ $this->name = "T411";
+ $this->uri = "https://t411.in/";
+ $this->description = "Returns the 5 newest torrents with specified search terms
Use url part after '?' mark when using their search engine";
+ $this->update = "2015-10-22";
+
+ $this->parameters[] =
+ '[
+ {
+ "name" : "Search criteria",
+ "identifier" : "search"
+ }
+ ]';
+ }
+
+
public function collectData(array $param) {
//Utility function for extracting CDATA fields
diff --git a/bridges/TagBoardBridge.php b/bridges/TagBoardBridge.php
index 2b9abce..0a740b1 100644
--- a/bridges/TagBoardBridge.php
+++ b/bridges/TagBoardBridge.php
@@ -1,18 +1,24 @@
maintainer = "Pitchoule";
+ $this->name = "TagBoard";
+ $this->uri = "http://www.TagBoard.com";
+ $this->description = "Returns most recent results from TagBoard.";
+ $this->update = "2014-09-10";
+
+ $this->parameters[] =
+ '[
+ {
+ "name" : "keyword",
+ "identifier" : "u"
+ }
+ ]';
+
+ }
+
public function collectData(array $param){
$html = '';
$this->request = $param['u'];
diff --git a/bridges/TbibBridge.php b/bridges/TbibBridge.php
index 4871859..cca0b0b 100644
--- a/bridges/TbibBridge.php
+++ b/bridges/TbibBridge.php
@@ -1,17 +1,28 @@
maintainer = "mitsukarenai";
+ $this->name = "Tbib";
+ $this->uri = "http://tbib.org/";
+ $this->description = "Returns images from given page";
+ $this->update = "2014-05-25";
+
+ $this->parameters[] =
+ '[
+ {
+ "name" : "page",
+ "identifier" : "p",
+ "type" : "number"
+ },
+ {
+ "name" : "tags",
+ "identifier" : "t"
+ }
+ ]';
+ }
+
public function collectData(array $param){
$page = 0;$tags='';
if (isset($param['p'])) {
diff --git a/bridges/ThePirateBayBridge.php b/bridges/ThePirateBayBridge.php
index 12171ec..adb3641 100644
--- a/bridges/ThePirateBayBridge.php
+++ b/bridges/ThePirateBayBridge.php
@@ -1,19 +1,24 @@
maintainer = "mitsukarenai";
+ $this->name = "The Pirate Bay";
+ $this->uri = "https://thepiratebay.vg/";
+ $this->description = "Returns results for the keywords. You can put several list of keywords by separating them with a semicolon (e.g. \"one show;another show\")";
+ $this->update = "2014-05-26";
+
+ $this->parameters[] =
+ '[
+ {
+ "name" : "keywords, separated by semicolons",
+ "identifier" : "q",
+ "exampleValue" : "first list;second list;..."
+ }
+ ]';
+ }
+
public function collectData(array $param){
function parseDateTimestamp($element){
diff --git a/bridges/TwitchApiBridge.php b/bridges/TwitchApiBridge.php
index aec4a9c..25a08b1 100644
--- a/bridges/TwitchApiBridge.php
+++ b/bridges/TwitchApiBridge.php
@@ -22,6 +22,66 @@ class TwitchApiBridge extends BridgeAbstract{
// for use in the getName function!
private $channel;
+
+ public function loadMetadatas() {
+
+ $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->update = "2015-07-14";
+
+ $this->parameters["Get channel without limit"] =
+ '[
+ {
+ "name" : "Channel",
+ "identifier" : "channel"
+ },
+ {
+ "name" : "Broadcasts",
+ "identifier" : "broadcasts",
+ "type" : "list",
+ "values" : [
+ {
+ "name" : "Show broadcasts",
+ "value" : "true"
+ },
+ {
+ "name" : "Don\'t show broadcasts",
+ "value" : "false"
+ }
+ ]
+ }
+ ]';
+ $this->parameters["Get channel with limit"] =
+ '[
+ {
+ "name" : "Channel",
+ "identifier" : "channel"
+ },
+ {
+ "name" : "Limit",
+ "identifier" : "limit",
+ "type" : "number"
+ },
+ {
+ "name" : "Broadcasts",
+ "identifier" : "broadcasts",
+ "type" : "list",
+ "values" : [
+ {
+ "name" : "Show broadcasts",
+ "value" : "true"
+ },
+ {
+ "name" : "Don\'t show broadcasts",
+ "value" : "false"
+ }
+ ]
+ }
+ ]';
+
+ }
public function collectData(array $param){
diff --git a/bridges/TwitterBridge.php b/bridges/TwitterBridge.php
index 91101e3..be007e8 100644
--- a/bridges/TwitterBridge.php
+++ b/bridges/TwitterBridge.php
@@ -1,20 +1,35 @@
maintainer = "mitsukarenai";
+ $this->name = "Twitter Bridge";
+ $this->uri = "http://twitter.com/";
+ $this->description = "Returns user timelines or keyword/hashtag search results (without using their API).";
+ $this->update = "2014-05-25";
+
+ $this->parameters["By keyword or hashtag"] =
+ '[
+ {
+ "name" : "Keyword or #hashtag",
+ "identifier" : "q"
+ }
+ ]';
+
+ $this->parameters["By username"] =
+ '[
+ {
+ "name" : "username",
+ "identifier" : "u"
+ }
+ ]';
+
+ }
+
public function collectData(array $param){
$html = '';
if (isset($param['q'])) { /* keyword search mode */
diff --git a/bridges/TwitterBridgeClean.php b/bridges/TwitterBridgeClean.php
index 0db6a48..f804556 100644
--- a/bridges/TwitterBridgeClean.php
+++ b/bridges/TwitterBridgeClean.php
@@ -1,20 +1,35 @@
maintainer = "vinzv";
+ $this->name = "Twitter Bridge Clean";
+ $this->uri = "http://twitter.com/";
+ $this->description = "Returns user timelines without username in title or search results for keywords/hashtags (without using their API).";
+ $this->update = "2015-03-07";
+
+ $this->parameters["By keyword or hashtag"] =
+ '[
+ {
+ "name" : "Keyword or #hashtag",
+ "identifier" : "q"
+ }
+ ]';
+
+ $this->parameters["By username"] =
+ '[
+ {
+ "name" : "username",
+ "identifier" : "u"
+ }
+ ]';
+
+ }
+
public function collectData(array $param){
$html = '';
if (isset($param['q'])) { /* keyword search mode */
diff --git a/bridges/TwitterBridgeExtended.php b/bridges/TwitterBridgeExtended.php
index d117635..c87d414 100644
--- a/bridges/TwitterBridgeExtended.php
+++ b/bridges/TwitterBridgeExtended.php
@@ -1,18 +1,32 @@
maintainer = "mitsukarenai";
+ $this->name = "Twitter Bridge Extended";
+ $this->uri = "https://twitter.com/";
+ $this->description = "(same as Twitter Bridge, but with avatar, replies and RTs)";
+ $this->update = "2014-05-25";
+
+ $this->parameters["By keyword or hashtag"] =
+ '[
+ {
+ "name" : "Keyword or #hashtag",
+ "identifier" : "q"
+ }
+ ]';
+
+ $this->parameters["By username"] =
+ '[
+ {
+ "name" : "username",
+ "identifier" : "u"
+ }
+ ]';
+
+ }
+
public function collectData(array $param){
$html = '';
if (isset($param['q'])) { /* keyword search mode */
diff --git a/bridges/TwitterBridgeTweaked.php b/bridges/TwitterBridgeTweaked.php
index 92825d1..d91a604 100644
--- a/bridges/TwitterBridgeTweaked.php
+++ b/bridges/TwitterBridgeTweaked.php
@@ -1,19 +1,32 @@
maintainer = "kraoc";
+ $this->name = "Twitter Bridge Tweaked";
+ $this->uri = "https://twitter.com/";
+ $this->description = "(same as Twitter Bridge Extended, but with cleaned title & content)";
+ $this->update = "2014-12-05";
+
+ $this->parameters["By keyword or hashtag"] =
+ '[
+ {
+ "name" : "Keyword or #hashtag",
+ "identifier" : "q"
+ }
+ ]';
+
+ $this->parameters["By username"] =
+ '[
+ {
+ "name" : "username",
+ "identifier" : "u"
+ }
+ ]';
+
+ }
+
private function containsTLD($string) {
preg_match(
"/(AC($|\/)|\.AD($|\/)|\.AE($|\/)|\.AERO($|\/)|\.AF($|\/)|\.AG($|\/)|\.AI($|\/)|\.AL($|\/)|\.AM($|\/)|\.AN($|\/)|\.AO($|\/)|\.AQ($|\/)|\.AR($|\/)|\.ARPA($|\/)|\.AS($|\/)|\.ASIA($|\/)|\.AT($|\/)|\.AU($|\/)|\.AW($|\/)|\.AX($|\/)|\.AZ($|\/)|\.BA($|\/)|\.BB($|\/)|\.BD($|\/)|\.BE($|\/)|\.BF($|\/)|\.BG($|\/)|\.BH($|\/)|\.BI($|\/)|\.BIZ($|\/)|\.BJ($|\/)|\.BM($|\/)|\.BN($|\/)|\.BO($|\/)|\.BR($|\/)|\.BS($|\/)|\.BT($|\/)|\.BV($|\/)|\.BW($|\/)|\.BY($|\/)|\.BZ($|\/)|\.CA($|\/)|\.CAT($|\/)|\.CC($|\/)|\.CD($|\/)|\.CF($|\/)|\.CG($|\/)|\.CH($|\/)|\.CI($|\/)|\.CK($|\/)|\.CL($|\/)|\.CM($|\/)|\.CN($|\/)|\.CO($|\/)|\.COM($|\/)|\.COOP($|\/)|\.CR($|\/)|\.CU($|\/)|\.CV($|\/)|\.CX($|\/)|\.CY($|\/)|\.CZ($|\/)|\.DE($|\/)|\.DJ($|\/)|\.DK($|\/)|\.DM($|\/)|\.DO($|\/)|\.DZ($|\/)|\.EC($|\/)|\.EDU($|\/)|\.EE($|\/)|\.EG($|\/)|\.ER($|\/)|\.ES($|\/)|\.ET($|\/)|\.EU($|\/)|\.FI($|\/)|\.FJ($|\/)|\.FK($|\/)|\.FM($|\/)|\.FO($|\/)|\.FR($|\/)|\.GA($|\/)|\.GB($|\/)|\.GD($|\/)|\.GE($|\/)|\.GF($|\/)|\.GG($|\/)|\.GH($|\/)|\.GI($|\/)|\.GL($|\/)|\.GM($|\/)|\.GN($|\/)|\.GOV($|\/)|\.GP($|\/)|\.GQ($|\/)|\.GR($|\/)|\.GS($|\/)|\.GT($|\/)|\.GU($|\/)|\.GW($|\/)|\.GY($|\/)|\.HK($|\/)|\.HM($|\/)|\.HN($|\/)|\.HR($|\/)|\.HT($|\/)|\.HU($|\/)|\.ID($|\/)|\.IE($|\/)|\.IL($|\/)|\.IM($|\/)|\.IN($|\/)|\.INFO($|\/)|\.INT($|\/)|\.IO($|\/)|\.IQ($|\/)|\.IR($|\/)|\.IS($|\/)|\.IT($|\/)|\.JE($|\/)|\.JM($|\/)|\.JO($|\/)|\.JOBS($|\/)|\.JP($|\/)|\.KE($|\/)|\.KG($|\/)|\.KH($|\/)|\.KI($|\/)|\.KM($|\/)|\.KN($|\/)|\.KP($|\/)|\.KR($|\/)|\.KW($|\/)|\.KY($|\/)|\.KZ($|\/)|\.LA($|\/)|\.LB($|\/)|\.LC($|\/)|\.LI($|\/)|\.LK($|\/)|\.LR($|\/)|\.LS($|\/)|\.LT($|\/)|\.LU($|\/)|\.LV($|\/)|\.LY($|\/)|\.MA($|\/)|\.MC($|\/)|\.MD($|\/)|\.ME($|\/)|\.MG($|\/)|\.MH($|\/)|\.MIL($|\/)|\.MK($|\/)|\.ML($|\/)|\.MM($|\/)|\.MN($|\/)|\.MO($|\/)|\.MOBI($|\/)|\.MP($|\/)|\.MQ($|\/)|\.MR($|\/)|\.MS($|\/)|\.MT($|\/)|\.MU($|\/)|\.MUSEUM($|\/)|\.MV($|\/)|\.MW($|\/)|\.MX($|\/)|\.MY($|\/)|\.MZ($|\/)|\.NA($|\/)|\.NAME($|\/)|\.NC($|\/)|\.NE($|\/)|\.NET($|\/)|\.NF($|\/)|\.NG($|\/)|\.NI($|\/)|\.NL($|\/)|\.NO($|\/)|\.NP($|\/)|\.NR($|\/)|\.NU($|\/)|\.NZ($|\/)|\.OM($|\/)|\.ORG($|\/)|\.PA($|\/)|\.PE($|\/)|\.PF($|\/)|\.PG($|\/)|\.PH($|\/)|\.PK($|\/)|\.PL($|\/)|\.PM($|\/)|\.PN($|\/)|\.PR($|\/)|\.PRO($|\/)|\.PS($|\/)|\.PT($|\/)|\.PW($|\/)|\.PY($|\/)|\.QA($|\/)|\.RE($|\/)|\.RO($|\/)|\.RS($|\/)|\.RU($|\/)|\.RW($|\/)|\.SA($|\/)|\.SB($|\/)|\.SC($|\/)|\.SD($|\/)|\.SE($|\/)|\.SG($|\/)|\.SH($|\/)|\.SI($|\/)|\.SJ($|\/)|\.SK($|\/)|\.SL($|\/)|\.SM($|\/)|\.SN($|\/)|\.SO($|\/)|\.SR($|\/)|\.ST($|\/)|\.SU($|\/)|\.SV($|\/)|\.SY($|\/)|\.SZ($|\/)|\.TC($|\/)|\.TD($|\/)|\.TEL($|\/)|\.TF($|\/)|\.TG($|\/)|\.TH($|\/)|\.TJ($|\/)|\.TK($|\/)|\.TL($|\/)|\.TM($|\/)|\.TN($|\/)|\.TO($|\/)|\.TP($|\/)|\.TR($|\/)|\.TRAVEL($|\/)|\.TT($|\/)|\.TV($|\/)|\.TW($|\/)|\.TZ($|\/)|\.UA($|\/)|\.UG($|\/)|\.UK($|\/)|\.US($|\/)|\.UY($|\/)|\.UZ($|\/)|\.VA($|\/)|\.VC($|\/)|\.VE($|\/)|\.VG($|\/)|\.VI($|\/)|\.VN($|\/)|\.VU($|\/)|\.WF($|\/)|\.WS($|\/)|\.XN--0ZWM56D($|\/)|\.XN--11B5BS3A9AJ6G($|\/)|\.XN--80AKHBYKNJ4F($|\/)|\.XN--9T4B11YI5A($|\/)|\.XN--DEBA0AD($|\/)|\.XN--G6W251D($|\/)|\.XN--HGBK6AJ7F53BBA($|\/)|\.XN--HLCJ6AYA9ESC7A($|\/)|\.XN--JXALPDLP($|\/)|\.XN--KGBECHTV($|\/)|\.XN--ZCKZAH($|\/)|\.YE($|\/)|\.YT($|\/)|\.YU($|\/)|\.ZA($|\/)|\.ZM($|\/)|\.ZW)/i",
diff --git a/bridges/UnsplashBridge.php b/bridges/UnsplashBridge.php
index 791ab4c..553b226 100644
--- a/bridges/UnsplashBridge.php
+++ b/bridges/UnsplashBridge.php
@@ -1,17 +1,36 @@
maintainer = "nel50n";
+ $this->name = "Unsplash Bridge";
+ $this->uri = "http://unsplash.com/";
+ $this->description = "Returns the latests photos from Unsplash";
+ $this->update = "2015-03-02";
+
+ $this->parameters[] =
+ '[
+ {
+ "name" : "Max number of photos",
+ "identifier" : "m",
+ "type" : "number"
+ },
+ {
+ "name" : "Width",
+ "identifier" : "w",
+ "exampleValue" : "1920, 1680, ..."
+ },
+ {
+ "name" : "JPEG quality",
+ "identifier" : "q",
+ "type" : "number"
+
+ }
+
+ ]';
+ }
+
public function collectData(array $param){
$html = '';
$baseUri = 'http://unsplash.com';
diff --git a/bridges/WallpaperStopBridge.php b/bridges/WallpaperStopBridge.php
index 9d3e20b..e88921c 100644
--- a/bridges/WallpaperStopBridge.php
+++ b/bridges/WallpaperStopBridge.php
@@ -1,21 +1,44 @@
maintainer = "nel50n";
+ $this->name = "WallpaperStop Bridge";
+ $this->uri = "http://www.wallpaperstop.com/";
+ $this->description = "Returns the latests wallpapers from WallpaperStop";
+ $this->update = "2014-11-05";
+
+ $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, ..."
+ }
+
+ ]';
+
+ }
+
+
public function collectData(array $param){
$html = '';
if (!isset($param['c'])) {
diff --git a/bridges/WhydBridge.php b/bridges/WhydBridge.php
index 060a7b6..96c77c1 100644
--- a/bridges/WhydBridge.php
+++ b/bridges/WhydBridge.php
@@ -1,21 +1,27 @@
maintainer = "kranack";
+ $this->name = "Whyd Bridge";
+ $this->uri = "http://www.whyd.com/";
+ $this->description = "Returns 10 newest music from user profile";
+ $this->update = "2014-07-18";
+
+ $this->parameters[] =
+ '[
+ {
+ "name" : "username/id",
+ "identifier" : "u"
+ }
+ ]';
+
+ }
+
public function collectData(array $param){
$html = '';
if (isset($param['u']))
diff --git a/bridges/WordPressBridge.php b/bridges/WordPressBridge.php
index 2a182df..6208515 100644
--- a/bridges/WordPressBridge.php
+++ b/bridges/WordPressBridge.php
@@ -1,21 +1,32 @@
maintainer = "aledeg";
+ $this->name = "Wordpress Bridge";
+ $this->uri = "https://wordpress.com/";
+ $this->description = "Returns the 3 newest full posts of a Wordpress blog";
+ $this->update = "2015-09-05";
+
+ $this->parameters[] =
+ '[
+ {
+ "name" : "blog URL",
+ "required" : "true",
+ "identifier" : "url"
+ },
+ {
+ "name" : "Blog name",
+ "identifier" : "name"
+ }
+ ]';
+
+ }
+
public function collectData(array $param) {
$this->processParams($param);
diff --git a/bridges/WorldOfTanks.php b/bridges/WorldOfTanks.php
index f4de477..c6dc7ef 100644
--- a/bridges/WorldOfTanks.php
+++ b/bridges/WorldOfTanks.php
@@ -1,17 +1,65 @@
fr;English=>en;Español=>es;Deutsch=>de;Čeština=>cs;Polski=>pl;Türkçe=>tr",text|category="Category id")
-*/
define('WORLD_OF_TANKS', 'http://worldoftanks.eu/');
define('NEWS', '/news/');
class WorldOfTanks extends HttpCachingBridgeAbstract{
+
private $lang = "fr";
public $uri = WORLD_OF_TANKS;
- public $name = 'World of tanks news';
+
+ public function loadMetadatas() {
+
+ $this->maintainer = "mitsukarenai";
+ $this->name = "World of Tanks";
+ $this->uri = "http://worldoftanks.eu/";
+ $this->description = "News about the tank slaughter game.";
+ $this->update = "2015-09-12";
+
+ $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"
+ }
+ ]
+
+ }
+ ]';
+ }
+
public function collectData(array $param){
if (!empty($param['lang'])) {
diff --git a/bridges/XbooruBridge.php b/bridges/XbooruBridge.php
index b575906..5e0281b 100644
--- a/bridges/XbooruBridge.php
+++ b/bridges/XbooruBridge.php
@@ -1,17 +1,28 @@
maintainer = "mitsukarenai";
+ $this->name = "Xbooru";
+ $this->uri = "http://xbooru.com/";
+ $this->description = "Returns images from given page";
+ $this->update = "2014-05-25";
+
+ $this->parameters[] =
+ '[
+ {
+ "name" : "page",
+ "identifier" : "p",
+ "type" : "number"
+ },
+ {
+ "name" : "tags",
+ "identifier" : "t"
+ }
+ ]';
+ }
+
public function collectData(array $param){
$page = 0;$tags='';
if (isset($param['p'])) {
diff --git a/bridges/YandereBridge.php b/bridges/YandereBridge.php
index aeb7fdf..dd479e0 100644
--- a/bridges/YandereBridge.php
+++ b/bridges/YandereBridge.php
@@ -1,17 +1,28 @@
maintainer = "mitsukarenai";
+ $this->name = "Yande.re";
+ $this->uri = "https://yande.re/";
+ $this->description = "Returns images from given page and tags";
+ $this->update = "2014-05-25";
+
+ $this->parameters[] =
+ '[
+ {
+ "name" : "page",
+ "identifier" : "p",
+ "type" : "number"
+ },
+ {
+ "name" : "tags",
+ "identifier" : "t"
+ }
+ ]';
+ }
+
public function collectData(array $param){
$page = 1; $tags = '';
if (isset($param['p'])) {