1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-06 08:37:30 +02:00

[DansTonChatBridge] Remove bridge (#4650)

bridge is broken and website has native feeds.

https://danstonchat.com/category/quote/feed
This commit is contained in:
Joseph
2025-08-04 16:19:24 +01:00
committed by GitHub
parent 20fec74c63
commit fb153f9a92

View File

@@ -1,30 +0,0 @@
<?php
class DansTonChatBridge extends BridgeAbstract
{
const MAINTAINER = 'Astalaseven';
const NAME = 'DansTonChat Bridge';
const URI = 'https://danstonchat.com/';
const CACHE_TIMEOUT = 21600; //6h
const DESCRIPTION = 'Returns latest quotes from DansTonChat.';
public function collectData()
{
$url = self::URI . 'latest.html';
$dom = getSimpleHTMLDOM($url);
$items = $dom->find('div.item');
foreach ($items as $element) {
$item = [];
$item['uri'] = $element->find('a', 0)->href;
$titleContent = $element->find('h3 a', 0);
if ($titleContent) {
$item['title'] = 'DansTonChat ' . html_entity_decode($titleContent->plaintext, ENT_QUOTES);
} else {
$item['title'] = 'DansTonChat';
}
$item['content'] = $element->find('div.item-content a', 0)->innertext;
$this->items[] = $item;
}
}
}