Skip to content

Commit

Permalink
bridges: Remove unnecessary functions getName() and getURI()
Browse files Browse the repository at this point in the history
  • Loading branch information
logmanoriginal committed Aug 9, 2016
1 parent 9f3e7e1 commit 63bb7ef
Show file tree
Hide file tree
Showing 104 changed files with 107 additions and 854 deletions.
12 changes: 0 additions & 12 deletions bridges/ABCTabsBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,4 @@ public function collectData(array $param){
$this->items[] = $item;
}
}

public function getName() {

return "ABC Tabs Bridge";

}

public function getURI() {

return "http://www.abc-tabs.com/";

}
}
14 changes: 1 addition & 13 deletions bridges/AcrimedBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public function loadMetadatas() {
$this->name = "Acrimed Bridge";
$this->uri = "http://www.acrimed.org/";
$this->description = "Returns the newest articles.";
$this->update = "2014-05-25";
$this->update = "2016-08-09";

}

Expand Down Expand Up @@ -40,18 +40,6 @@ protected function parseRSSItem($newsItem) {

}

public function getName() {

return "Acrimed Bridge";

}

public function getURI() {

return "http://www.acrimed.org/";

}

public function getCacheDuration(){
return 4800; // 2 hours
}
Expand Down
4 changes: 0 additions & 4 deletions bridges/AnimeUltimeBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,6 @@ public function getName() {
return 'Latest '.$this->filter.' - Anime-Ultime Bridge';
}

public function getURI() {
return 'http://www.anime-ultime.net/';
}

public function getCacheDuration() {
return 3600*3; // 3 hours
}
Expand Down
9 changes: 0 additions & 9 deletions bridges/ArstechnicaBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,8 @@ function ExtractContent($url) {

}


public function getName() {
return 'ArsTechnica';
}

public function getCacheDuration() {
return 7200; // 2h
}

public function getURI() {
return "http://arstechnica.com";
}

}
8 changes: 0 additions & 8 deletions bridges/Arte7Bridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,6 @@ function extractVideoset($category='toutes-les-videos', $lang='fr')
}
}

public function getName(){
return 'Arte7';
}

public function getURI(){
return 'http://www.arte.tv/';
}

public function getCacheDuration(){
return 1800; // 30 minutes
}
Expand Down
4 changes: 0 additions & 4 deletions bridges/BandcampBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@ public function getName(){
return (!empty($this->request) ? $this->request .' - ' : '') .'Bandcamp Tag';
}

public function getURI(){
return 'http://bandcamp.com';
}

public function getCacheDuration(){
return 600; // 10 minutes
}
Expand Down
10 changes: 1 addition & 9 deletions bridges/BastaBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ public function loadMetadatas() {
$this->name = "Bastamag Bridge";
$this->uri = "http://www.bastamag.net/";
$this->description = "Returns the newest articles.";
$this->update = "2016-08-02";
$this->update = "2016-08-09";
}

public function collectData(array $param){
Expand All @@ -30,14 +30,6 @@ function ReplaceImageUrl($content){
}
}

public function getName(){
return 'Bastamag Bridge';
}

public function getURI(){
return 'http://bastamag.net/';
}

public function getCacheDuration(){
return 3600*2; // 2 hours
}
Expand Down
8 changes: 0 additions & 8 deletions bridges/BlaguesDeMerdeBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,6 @@ public function collectData(array $param){
}
}

public function getName(){
return 'blaguesdemerde';
}

public function getURI(){
return 'http://www.blaguesdemerde.fr/';
}

public function getCacheDuration(){
return 7200; // 2h hours
}
Expand Down
8 changes: 0 additions & 8 deletions bridges/BooruprojectBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,6 @@ public function collectData(array $param){
}
}

public function getName(){
return 'Booruproject';
}

public function getURI(){
return 'http://booru.org/';
}

public function getCacheDuration(){
return 1800; // 30 minutes
}
Expand Down
10 changes: 1 addition & 9 deletions bridges/CADBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ public function loadMetadatas() {
$this->name = "CAD Bridge";
$this->uri = "http://www.cad-comic.com/";
$this->description = "Returns the newest articles.";
$this->update = "2016-08-06";
$this->update = "2016-08-09";
}

private function CADExtractContent($url) {
Expand Down Expand Up @@ -63,14 +63,6 @@ function CADUrl($string) {
}
}

public function getName(){
return 'CAD Bridge';
}

public function getURI(){
return 'http://www.cad-comic.com/';
}

public function getCacheDuration(){
return 3600*2; // 2 hours
}
Expand Down
18 changes: 5 additions & 13 deletions bridges/CastorusBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ class CastorusBridge extends BridgeAbstract {
public function loadMetadatas(){
$this->maintainer = "logmanoriginal";
$this->name = "Castorus Bridge";
$this->uri = $this->getURI();
$this->uri = 'http://www.castorus.com';
$this->description = "Returns the latest changes";
$this->update = "2016-08-06";
$this->update = "2016-08-09";

$this->parameters["Get latest changes"] = '[]';
$this->parameters["Get latest changes via ZIP code"] =
Expand Down Expand Up @@ -49,7 +49,7 @@ private function ExtractActivityUrl($activity){
if(!$url)
$this->returnError('Cannot find url!', 404);

return $this->getURI() . $url->href;
return $this->uri . $url->href;
}

// Extracts the time from an activity
Expand Down Expand Up @@ -85,10 +85,10 @@ public function collectData(array $params){
if(isset($params['city']))
$city_filter = trim($params['city']);

$html = $this->file_get_html($this->getURI());
$html = $this->file_get_html($this->uri);

if(!$html)
$this->returnError('Could not load data from ' . $this->getURI() . '!', 404);
$this->returnError('Could not load data from ' . $this->uri . '!', 404);

$activities = $html->find('div#activite/li');

Expand Down Expand Up @@ -116,14 +116,6 @@ public function collectData(array $params){
}
}

public function getName(){
return 'Castorus Bridge';
}

public function getURI(){
return 'http://www.castorus.com';
}

public function getCacheDuration(){
return 600; // 10 minutes
}
Expand Down
10 changes: 1 addition & 9 deletions bridges/CollegeDeFranceBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public function loadMetadatas() {
$this->name = "CollegeDeFrance";
$this->uri = "http://www.college-de-france.fr/";
$this->description = "Returns the latest audio and video from CollegeDeFrance";
$this->update = "2016-05-01";
$this->update = "2016-08-09";
}

public function collectData(array $param) {
Expand Down Expand Up @@ -54,14 +54,6 @@ public function collectData(array $param) {
}
}

public function getName(){
return 'CollegeDeFrance';
}

public function getURI(){
return 'http://www.college-de-france.fr/';
}

public function getCacheDuration(){
return 3600*3; // 3 hours
}
Expand Down
10 changes: 1 addition & 9 deletions bridges/CommonDreamsBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public function loadMetadatas() {
$this->name = "CommonDreams Bridge";
$this->uri = "http://www.commondreams.org/";
$this->description = "Returns the newest articles.";
$this->update = "2016-08-06";
$this->update = "2016-08-09";
}

private function CommonDreamsExtractContent($url) {
Expand Down Expand Up @@ -39,12 +39,4 @@ function CommonDreamsUrl($string) {
}
}
}

public function getName(){
return 'CommonDreams Bridge';
}

public function getURI(){
return 'http://www.commondreams.org/';
}
}
10 changes: 1 addition & 9 deletions bridges/CopieDoubleBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public function loadMetadatas() {
$this->name = "CopieDouble";
$this->uri = "http://www.copie-double.com/";
$this->description = "CopieDouble";
$this->update = "2016-08-06";
$this->update = "2016-08-09";

}

Expand Down Expand Up @@ -42,14 +42,6 @@ public function collectData(array $param){
}
}

public function getName(){
return 'CopieDouble';
}

public function getURI(){
return 'http://www.copie-double.com';
}

public function getCacheDuration(){
return 14400; // 4 hours
}
Expand Down
12 changes: 2 additions & 10 deletions bridges/CourrierInternationalBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ class CourrierInternationalBridge extends BridgeAbstract{
public function loadMetadatas() {

$this->maintainer = "teromene";
$this->name = "CourrierInternational";
$this->name = "Courrier International Bridge";
$this->uri = "http://CourrierInternational.fr/";
$this->description = "Courrier International bridge";
$this->update = "01/09/2015";
$this->update = "2016-08-09";

}

Expand Down Expand Up @@ -61,14 +61,6 @@ public function collectData(array $param){

}

public function getName(){
return 'Courrier International Bridge';
}

public function getURI(){
return 'http://courrierinternational.com';
}

public function getCacheDuration(){
return 300; // 5 minutes
}
Expand Down
10 changes: 1 addition & 9 deletions bridges/CryptomeBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public function loadMetadatas() {
$this->name = "Cryptome";
$this->uri = "http://cryptome.org/";
$this->description = "Returns the N most recent documents.";
$this->update = "";
$this->update = "2016-08-09";

$this->parameters[] =
'[
Expand Down Expand Up @@ -46,14 +46,6 @@ public function collectData(array $param){
}
}

public function getName(){
return 'Cryptome';
}

public function getURI(){
return 'https://secure.netsolhost.com/cryptome.org/';
}

public function getCacheDuration(){
return 21600; // 6 hours
}
Expand Down
4 changes: 0 additions & 4 deletions bridges/DailymotionBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,6 @@ public function getName(){
return (!empty($this->request) ? $this->request .' - ' : '') .'Dailymotion Bridge';
}

public function getURI(){
return 'https://www.dailymotion.com/';
}

public function getCacheDuration(){
return 3600*3; // 3 hours
}
Expand Down
8 changes: 0 additions & 8 deletions bridges/DanbooruBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,6 @@ public function collectData(array $param){
}
}

public function getName(){
return 'Danbooru';
}

public function getURI(){
return 'http://donmai.us/';
}

public function getCacheDuration(){
return 1800; // 30 minutes
}
Expand Down
Loading

0 comments on commit 63bb7ef

Please sign in to comment.