Skip to content

Commit

Permalink
fix navigation xml
Browse files Browse the repository at this point in the history
  • Loading branch information
ewilan-riviere committed Sep 14, 2023
1 parent 13ca642 commit 0a3a0cb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Engine/OpdsXmlEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,12 @@ public function addNavigationEntry(OpdsEntryNavigation $entry): array
$entryXml = [
'title' => $entry->getTitle(),
'id' => "{$app}:{$entry->getId()}",
'__custom:link:1' => $this->addXmlLink(href: $this->route($entry->getRoute()), title: $entry->getTitle(), rel: 'start'),
'__custom:link:1' => [
'_attributes' => [
'href' => $this->route($entry->getRoute()),
'type' => 'application/atom+xml;profile=opds-catalog;kind=navigation',
],
],
];

if ($entry->getUpdated()) {
Expand Down

0 comments on commit 0a3a0cb

Please sign in to comment.