Skip to content

Commit

Permalink
Last batch of bridges, all implemented !
Browse files Browse the repository at this point in the history
Signed-off-by: teromene <[email protected]>
  • Loading branch information
teromene authored and Mitsukarenai committed Dec 6, 2015
1 parent 715ad3b commit 78c9dcc
Show file tree
Hide file tree
Showing 60 changed files with 1,678 additions and 604 deletions.
20 changes: 11 additions & 9 deletions bridges/AllocineFRBridge.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
<?php
/**
*
* @name Allo Cine : Faux Raccord
* @homepage http://www.allocine.fr/video/programme-12284/saison-24580/
* @description Allo Cine : Faux Raccord
* @update 07/11/2013
* initial maintainer: superbaillot.net
*/
class AllocineFRBridge extends BridgeAbstract{

private $_URL = "http://www.allocine.fr/video/programme-12284/saison-24580/";
private $_NOM = "Faux Raccord";


public function loadMetadatas() {

$this->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);

Expand Down
20 changes: 11 additions & 9 deletions bridges/AllocineT5Bridge.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
<?php
/**
*
* @name Allo Cine : Top 5
* @homepage http://www.allocine.fr/video/programme-12299/saison-22542/
* @description Allo Cine : Top 5 via rss-bridge
* @update 07/11/2013
* initial maintainer: superbaillot.net
*/
class AllocineT5Bridge extends BridgeAbstract{

private $_URL = "http://www.allocine.fr/video/programme-12299/saison-22542/";
private $_NOM = "Top 5";


public function loadMetadatas() {

$this->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);

Expand Down
20 changes: 11 additions & 9 deletions bridges/AllocineTueursEnSerieBridge.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
<?php
/**
*
* @name Allo Cine : Tueurs En Serie
* @homepage http://www.allocine.fr/video/programme-12286/saison-22938/
* @description Allo Cine : Tueurs En Serie
* @update 12/11/2013
* initial maintainer: superbaillot.net
*/
class AllocineTueursEnSerieBridge extends BridgeAbstract{

private $_URL = "http://www.allocine.fr/video/programme-12286/saison-22938/";
private $_NOM = "Tueurs en Séries";


public function loadMetadatas() {

$this->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);

Expand Down
39 changes: 39 additions & 0 deletions bridges/AnimeUltimeBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
80 changes: 69 additions & 11 deletions bridges/Arte7Bridge.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
<?php
/**
* RssBridgeArte7
*
* @name Arte +7
* @homepage http://www.arte.tv/
* @description Returns newest videos from ARTE +7
* @maintainer mitsukarenai
* @update 2015-10-31
* @use1(list|catfr="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")
* @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() {
Expand Down Expand Up @@ -41,6 +30,26 @@ public function loadMetadatas() {
{
"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"
}
]
Expand All @@ -49,6 +58,55 @@ public function loadMetadatas() {
}
]';
$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"
}
]
}
]';
}


Expand Down
31 changes: 20 additions & 11 deletions bridges/BandcampBridge.php
Original file line number Diff line number Diff line change
@@ -1,18 +1,27 @@
<?php
/**
* BandcampTagRSS
* 2014-05-25
*
* @name Bandcamp Tag
* @homepage http://bandcamp.com/
* @description New bandcamp release by tag
* @maintainer sebsauvage
* @use1(tag="tag")
*/
class BandcampBridge extends BridgeAbstract{

private $request;

public function loadMetadatas() {

$this->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'])) {
Expand Down
40 changes: 29 additions & 11 deletions bridges/BooruprojectBridge.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,35 @@
<?php
/**
* RssBridgeBooruproject
* Returns images from given page
*
* @name Booruproject
* @homepage http://booru.org/
* @description Returns images from given page and booruproject instance (****.booru.org)
* @maintainer mitsukarenai
* @update 2015-09-12
* @use1(i="instance (required)", p="page", t="tags")
*/
class BooruprojectBridge extends BridgeAbstract{

public function loadMetadatas() {

$this->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'])) {
Expand Down
29 changes: 17 additions & 12 deletions bridges/CNETBridge.php
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
<?php
/**
* CNET Bridge
* Returns the newest articles
* 2015-09-08
*
* @name CNET News
* @homepage http://www.cnet.com/
* @description Returns the newest articles. <br /> 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. <br /> 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) {
Expand Down
20 changes: 20 additions & 0 deletions bridges/CryptomeBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Loading

0 comments on commit 78c9dcc

Please sign in to comment.