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

feat: support itunes namespace in top channel feed (#3776)

Also preserves other properties.
This commit is contained in:
Dag
2024-01-09 20:18:33 +01:00
committed by GitHub
parent ea58c8d2bc
commit 3ce94409ab
22 changed files with 298 additions and 203 deletions

View File

@@ -100,7 +100,7 @@ class DisplayAction implements ActionInterface
private function createResponse(array $request, BridgeAbstract $bridge, FormatAbstract $format)
{
$items = [];
$infos = [];
$feed = [];
try {
$bridge->loadConfiguration();
@@ -116,12 +116,7 @@ class DisplayAction implements ActionInterface
}
$items = $feedItems;
}
$infos = [
'name' => $bridge->getName(),
'uri' => $bridge->getURI(),
'donationUri' => $bridge->getDonationURI(),
'icon' => $bridge->getIcon()
];
$feed = $bridge->getFeed();
} catch (\Exception $e) {
if ($e instanceof HttpException) {
// Reproduce (and log) these responses regardless of error output and report limit
@@ -155,7 +150,7 @@ class DisplayAction implements ActionInterface
}
$format->setItems($items);
$format->setExtraInfos($infos);
$format->setFeed($feed);
$now = time();
$format->setLastModified($now);
$headers = [