Verbessere Beschreibungen in Feeds & setze Limits
This commit is contained in:
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user