1
0

Lösche Cemu Releases Bridge

This commit is contained in:
Akamaru
2025-11-18 19:02:12 +01:00
parent 9b4c76d285
commit aaee9c72cc
2 changed files with 0 additions and 58 deletions

View File

@@ -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;
}
}
}
}

View File

@@ -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)
- **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)
- **Beschreibung**: Tweets von Cosplayern gesammelt durch Cosppi