Lösche Cemu Releases Bridge
This commit is contained in:
@@ -1,55 +0,0 @@
|
|||||||
<?php
|
|
||||||
class CemuReleasesBridge extends BridgeAbstract {
|
|
||||||
|
|
||||||
const MAINTAINER = 'Brawl';
|
|
||||||
const NAME = 'Cemu Releases';
|
|
||||||
const URI = 'https://cemu.info/';
|
|
||||||
const CACHE_TIMEOUT = 21600; // 21600 = 6h
|
|
||||||
const DESCRIPTION = 'Returns the latest Cemu releases.';
|
|
||||||
|
|
||||||
public function getIcon()
|
|
||||||
{
|
|
||||||
return 'https://www.google.com/s2/favicons?domain=cemu.info&sz=32';
|
|
||||||
}
|
|
||||||
|
|
||||||
public function collectData() {
|
|
||||||
// Retrieve webpage
|
|
||||||
$pageUrl = self::URI . 'changelog.html';
|
|
||||||
$html = getSimpleHTMLDOM($pageUrl)
|
|
||||||
or returnServerError('Could not request webpage: ' . $pageUrl);
|
|
||||||
|
|
||||||
// Process articles
|
|
||||||
foreach($html->find('div[class=col-sm-12 well]') as $element) {
|
|
||||||
|
|
||||||
if(count($this->items) >= 10) {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
$title_array = explode('|', $element->find('h2.changelog', 0)->innertext);
|
|
||||||
$title_array_len = count($title_array);
|
|
||||||
$article_title = trim(strip_tags($title_array[0]));
|
|
||||||
|
|
||||||
$article_content = '';
|
|
||||||
if ($title_array_len >= 3) {
|
|
||||||
$article_content .= str_replace('<a href="', '<a href="' . self::URI,$title_array[2]);
|
|
||||||
}
|
|
||||||
if ($title_array_len >= 4) {
|
|
||||||
$article_content .= ' | ' . $title_array[3];
|
|
||||||
}
|
|
||||||
$article_content .= $element->find('ul', 0);
|
|
||||||
|
|
||||||
$article_timestamp = strtotime(strip_tags($title_array[1]));
|
|
||||||
|
|
||||||
// Store article in items array
|
|
||||||
if (!empty($article_title)) {
|
|
||||||
$item = array();
|
|
||||||
$item['uri'] = $pageUrl;
|
|
||||||
$item['title'] = $article_title;
|
|
||||||
$item['content'] = $article_content;
|
|
||||||
$item['timestamp'] = $article_timestamp;
|
|
||||||
$item['uid'] = $article_title;
|
|
||||||
$this->items[] = $item;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -20,9 +20,6 @@ Diese Sammlung enthält verschiedene Bridge-Implementierungen für RSS-Bridge, u
|
|||||||
### [BSI Cert Bridge](https://bridge.ponywave.de/#bridge-BSICertBridge) (Von Brawl)
|
### [BSI Cert Bridge](https://bridge.ponywave.de/#bridge-BSICertBridge) (Von Brawl)
|
||||||
- **Beschreibung**: Sicherheitshinweise des Bürger-CERT vom Bundesministerium für Internetsicherheit
|
- **Beschreibung**: Sicherheitshinweise des Bürger-CERT vom Bundesministerium für Internetsicherheit
|
||||||
|
|
||||||
### [Cemu Releases Bridge](https://bridge.ponywave.de/#bridge-CemuReleasesBridge) (Von Brawl)
|
|
||||||
- **Beschreibung**: Zeigt die neuesten Cemu Releases
|
|
||||||
|
|
||||||
### [Cosppi Bridge](https://bridge.ponywave.de/#bridge-CosppiBridge) (Von Brawl, GPT-4)
|
### [Cosppi Bridge](https://bridge.ponywave.de/#bridge-CosppiBridge) (Von Brawl, GPT-4)
|
||||||
- **Beschreibung**: Tweets von Cosplayern gesammelt durch Cosppi
|
- **Beschreibung**: Tweets von Cosplayern gesammelt durch Cosppi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user