diff --git a/client/pages/audiobook/_id/chapters.vue b/client/pages/audiobook/_id/chapters.vue index 7b56f5c9..55f74b5c 100644 --- a/client/pages/audiobook/_id/chapters.vue +++ b/client/pages/audiobook/_id/chapters.vue @@ -141,10 +141,21 @@
{{ asinError }}
+{{ $strings.MessageAsinCheck }}
+http://192.168.1.1:8337 then you would put http://192.168.1.1:8337/notify.",
+ "MessageAsinCheck": "Ensure you are using the ASIN from the correct Audible region, not Amazon.",
"MessageBackupsDescription": "Backups include users, user progress, library item details, server settings, and images stored in /metadata/items & /metadata/authors. Backups do not include any files stored in your library folders.",
"MessageBackupsLocationEditNote": "Note: Updating the backup location will not move or modify existing backups",
"MessageBackupsLocationNoEditNote": "Note: The backup location is set through an environment variable and cannot be changed here.",
@@ -723,6 +724,7 @@
"MessageChapterErrorStartGteDuration": "Invalid start time must be less than audiobook duration",
"MessageChapterErrorStartLtPrev": "Invalid start time must be greater than or equal to previous chapter start time",
"MessageChapterStartIsAfter": "Chapter start is after the end of your audiobook",
+ "MessageChaptersNotFound": "Chapters not found",
"MessageCheckingCron": "Checking cron...",
"MessageConfirmCloseFeed": "Are you sure you want to close this feed?",
"MessageConfirmDeleteBackup": "Are you sure you want to delete backup for {0}?",
@@ -779,6 +781,7 @@
"MessageForceReScanDescription": "will scan all files again like a fresh scan. Audio file ID3 tags, OPF files, and text files will be scanned as new.",
"MessageImportantNotice": "Important Notice!",
"MessageInsertChapterBelow": "Insert chapter below",
+ "MessageInvalidAsin": "Invalid ASIN",
"MessageItemsSelected": "{0} items selected",
"MessageItemsUpdated": "{0} items updated",
"MessageJoinUsOn": "Join us on",
diff --git a/server/controllers/SearchController.js b/server/controllers/SearchController.js
index 51aaa910..bb3382f7 100644
--- a/server/controllers/SearchController.js
+++ b/server/controllers/SearchController.js
@@ -108,12 +108,12 @@ class SearchController {
async findChapters(req, res) {
const asin = req.query.asin
if (!isValidASIN(asin.toUpperCase())) {
- return res.json({ error: 'Invalid ASIN' })
+ return res.json({ error: 'Invalid ASIN', stringKey: 'MessageInvalidAsin' })
}
const region = (req.query.region || 'us').toLowerCase()
const chapterData = await BookFinder.findChapters(asin, region)
if (!chapterData) {
- return res.json({ error: 'Chapters not found' })
+ return res.json({ error: 'Chapters not found', stringKey: 'MessageChaptersNotFound' })
}
res.json(chapterData)
}
diff --git a/server/utils/constants.js b/server/utils/constants.js
index dd52e2e1..cc5217f4 100644
--- a/server/utils/constants.js
+++ b/server/utils/constants.js
@@ -45,6 +45,7 @@ module.exports.AudioMimeType = {
FLAC: 'audio/flac',
WMA: 'audio/x-ms-wma',
AIFF: 'audio/x-aiff',
+ AIF: 'audio/x-aiff',
WEBM: 'audio/webm',
WEBMA: 'audio/webm',
MKA: 'audio/x-matroska',
diff --git a/server/utils/globals.js b/server/utils/globals.js
index 5a5bd951..713b180f 100644
--- a/server/utils/globals.js
+++ b/server/utils/globals.js
@@ -1,6 +1,6 @@
const globals = {
SupportedImageTypes: ['png', 'jpg', 'jpeg', 'webp'],
- SupportedAudioTypes: ['m4b', 'mp3', 'm4a', 'flac', 'opus', 'ogg', 'oga', 'mp4', 'aac', 'wma', 'aiff', 'wav', 'webm', 'webma', 'mka', 'awb', 'caf', 'mpg', 'mpeg'],
+ SupportedAudioTypes: ['m4b', 'mp3', 'm4a', 'flac', 'opus', 'ogg', 'oga', 'mp4', 'aac', 'wma', 'aiff', 'aif', 'wav', 'webm', 'webma', 'mka', 'awb', 'caf', 'mpg', 'mpeg'],
SupportedEbookTypes: ['epub', 'pdf', 'mobi', 'azw3', 'cbr', 'cbz'],
TextFileTypes: ['txt', 'nfo'],
MetadataFileTypes: ['opf', 'abs', 'xml', 'json']