1
0

Verbessere Beschreibungen in Feeds & setze Limits

This commit is contained in:
Akamaru
2025-11-24 00:00:00 +01:00
parent aa6f6d9992
commit 238f109644
5 changed files with 93 additions and 73 deletions

View File

@@ -214,11 +214,10 @@ class RTLPlusBridge extends BridgeAbstract
}
}
// Beschreibung
$description = $episode['descriptionV2'] ?? '';
$item['content'] = '<p>' . htmlspecialchars($description) . '</p>';
// Content: Bild + Beschreibung
$content = '';
// Thumbnail hinzufügen
// Thumbnail zuerst
$imageUrl = null;
if (isset($episode['watchImages']['default']['absoluteUri'])) {
$imageUrl = $episode['watchImages']['default']['absoluteUri'];
@@ -227,10 +226,18 @@ class RTLPlusBridge extends BridgeAbstract
}
if ($imageUrl) {
$item['content'] .= '<p><img src="' . htmlspecialchars($imageUrl) . '" alt="' . htmlspecialchars($episodeTitle) . '"></p>';
$content .= '<img src="' . htmlspecialchars($imageUrl) . '" alt="' . htmlspecialchars($episodeTitle) . '"><br>';
$item['enclosures'] = [$imageUrl];
}
// Beschreibung unter dem Bild
$description = $episode['descriptionV2'] ?? '';
if (!empty($description)) {
$content .= '<p>' . htmlspecialchars($description) . '</p>';
}
$item['content'] = $content;
// URL konstruieren (zur Episode-Seite)
if (isset($episode['urlData']['watchPath'])) {
$item['uri'] = 'https://plus.rtl.de' . $episode['urlData']['watchPath'];