From e564c80ed2301c37509864b357976a24087985c3 Mon Sep 17 00:00:00 2001 From: advplyr Date: Sat, 30 Oct 2021 20:12:36 -0500 Subject: [PATCH] Add: Bookshelf list link to audiobook page --- client/components/app/BookListRow.vue | 4 ++-- client/pages/audiobook/_id/index.vue | 2 +- server/RssFeeds.js | 9 ++++++--- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/client/components/app/BookListRow.vue b/client/components/app/BookListRow.vue index 315ee073..7a33bc8b 100644 --- a/client/components/app/BookListRow.vue +++ b/client/components/app/BookListRow.vue @@ -11,9 +11,9 @@ -

+ {{ book.book.title }}: {{ book.book.subtitle }} -

+

{{ book.book.authorFL }}

diff --git a/client/pages/audiobook/_id/index.vue b/client/pages/audiobook/_id/index.vue index 032d774f..82714bbd 100644 --- a/client/pages/audiobook/_id/index.vue +++ b/client/pages/audiobook/_id/index.vue @@ -13,7 +13,7 @@

- {{ title }} ({{ audiobook.ino }}) + {{ title }}

{{ subtitle }}

diff --git a/server/RssFeeds.js b/server/RssFeeds.js index be446515..7c1a4b44 100644 --- a/server/RssFeeds.js +++ b/server/RssFeeds.js @@ -19,6 +19,8 @@ class RssFeeds { } getFeed(req, res) { + Logger.info('Get Feed', req.params.id, this.feeds[req.params.id]) + var feed = this.feeds[req.params.id] if (!feed) return null var xml = feed.buildXml() @@ -27,15 +29,16 @@ class RssFeeds { } openFeed(audiobook) { - var serverAddress = 'http://' + ip.address('public', 'ipv4') + ':' + this.Port + var ipAddress = ip.address('public', 'ipv4') + var serverAddress = 'http://' + ipAddress + ':' + this.Port Logger.info('Open RSS Feed', 'Server address', serverAddress) var feedId = (Date.now() + Math.floor(Math.random() * 1000)).toString(36) const feed = new Podcast({ title: audiobook.title, description: 'AudioBookshelf RSS Feed', - feedUrl: `${serverAddress}/feeds/${feedId}`, - imageUrl: `${serverAddress}/Logo.png`, + feed_url: `${serverAddress}/feeds/${feedId}`, + image_url: `${serverAddress}/Logo.png`, author: 'advplyr', language: 'en' })