mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-03 00:06:46 +01:00
Podcast search strings
This commit is contained in:
parent
d258b42e01
commit
f98f78a5bd
@ -5,7 +5,7 @@
|
|||||||
<div id="bookshelf" class="w-full overflow-y-auto px-2 py-6 sm:px-4 md:p-12 relative">
|
<div id="bookshelf" class="w-full overflow-y-auto px-2 py-6 sm:px-4 md:p-12 relative">
|
||||||
<div class="w-full max-w-4xl mx-auto flex">
|
<div class="w-full max-w-4xl mx-auto flex">
|
||||||
<form @submit.prevent="submit" class="flex flex-grow">
|
<form @submit.prevent="submit" class="flex flex-grow">
|
||||||
<ui-text-input v-model="searchInput" type="search" :disabled="processing" placeholder="Enter search term or RSS feed URL" class="flex-grow mr-2 text-sm md:text-base" />
|
<ui-text-input v-model="searchInput" type="search" :disabled="processing" :placeholder="$strings.MessagePodcastSearchField" class="flex-grow mr-2 text-sm md:text-base" />
|
||||||
<ui-btn type="submit" :disabled="processing" class="hidden md:block">{{ $strings.ButtonSubmit }}</ui-btn>
|
<ui-btn type="submit" :disabled="processing" class="hidden md:block">{{ $strings.ButtonSubmit }}</ui-btn>
|
||||||
<ui-btn type="submit" :disabled="processing" class="block md:hidden" small>{{ $strings.ButtonSubmit }}</ui-btn>
|
<ui-btn type="submit" :disabled="processing" class="block md:hidden" small>{{ $strings.ButtonSubmit }}</ui-btn>
|
||||||
</form>
|
</form>
|
||||||
@ -108,7 +108,7 @@ export default {
|
|||||||
|
|
||||||
if (!txt || !txt.includes('<opml') || !txt.includes('<outline ')) {
|
if (!txt || !txt.includes('<opml') || !txt.includes('<outline ')) {
|
||||||
// Quick lazy check for valid OPML
|
// Quick lazy check for valid OPML
|
||||||
this.$toast.error('Invalid OPML file <opml> tag not found OR an <outline> tag was not found')
|
this.$toast.error(this.$strings.MessageTaskOpmlParseFastFail)
|
||||||
this.processing = false
|
this.processing = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -117,7 +117,7 @@ export default {
|
|||||||
.$post(`/api/podcasts/opml/parse`, { opmlText: txt })
|
.$post(`/api/podcasts/opml/parse`, { opmlText: txt })
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
if (!data.feeds?.length) {
|
if (!data.feeds?.length) {
|
||||||
this.$toast.error('No feeds found in OPML file')
|
this.$toast.error(this.$strings.MessageTaskOpmlParseNoneFound)
|
||||||
} else {
|
} else {
|
||||||
this.opmlFeeds = data.feeds || []
|
this.opmlFeeds = data.feeds || []
|
||||||
this.showOPMLFeedsModal = true
|
this.showOPMLFeedsModal = true
|
||||||
@ -125,7 +125,7 @@ export default {
|
|||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
console.error('Failed', error)
|
console.error('Failed', error)
|
||||||
this.$toast.error('Failed to parse OPML file')
|
this.$toast.error(this.$strings.MessageTaskOpmlParseFailed)
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
this.processing = false
|
this.processing = false
|
||||||
@ -191,7 +191,7 @@ export default {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (!podcast.feedUrl) {
|
if (!podcast.feedUrl) {
|
||||||
this.$toast.error('Invalid podcast - no feed')
|
this.$toast.error(this.$strings.MessageNoPodcastFeed)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.processing = true
|
this.processing = true
|
||||||
|
@ -746,6 +746,7 @@
|
|||||||
"MessageNoLogs": "No Logs",
|
"MessageNoLogs": "No Logs",
|
||||||
"MessageNoMediaProgress": "No Media Progress",
|
"MessageNoMediaProgress": "No Media Progress",
|
||||||
"MessageNoNotifications": "No Notifications",
|
"MessageNoNotifications": "No Notifications",
|
||||||
|
"MessageNoPodcastFeed": "Invalid podcast: No Feed",
|
||||||
"MessageNoPodcastsFound": "No podcasts found",
|
"MessageNoPodcastsFound": "No podcasts found",
|
||||||
"MessageNoResults": "No Results",
|
"MessageNoResults": "No Results",
|
||||||
"MessageNoSearchResultsFor": "No search results for \"{0}\"",
|
"MessageNoSearchResultsFor": "No search results for \"{0}\"",
|
||||||
@ -762,6 +763,7 @@
|
|||||||
"MessagePlaylistCreateFromCollection": "Create playlist from collection",
|
"MessagePlaylistCreateFromCollection": "Create playlist from collection",
|
||||||
"MessagePleaseWait": "Please wait...",
|
"MessagePleaseWait": "Please wait...",
|
||||||
"MessagePodcastHasNoRSSFeedForMatching": "Podcast has no RSS feed url to use for matching",
|
"MessagePodcastHasNoRSSFeedForMatching": "Podcast has no RSS feed url to use for matching",
|
||||||
|
"MessagePodcastSearchField": "Enter search term or RSS feed URL",
|
||||||
"MessageQuickMatchDescription": "Populate empty item details & cover with first match result from '{0}'. Does not overwrite details unless 'Prefer matched metadata' server setting is enabled.",
|
"MessageQuickMatchDescription": "Populate empty item details & cover with first match result from '{0}'. Does not overwrite details unless 'Prefer matched metadata' server setting is enabled.",
|
||||||
"MessageRemoveChapter": "Remove chapter",
|
"MessageRemoveChapter": "Remove chapter",
|
||||||
"MessageRemoveEpisodes": "Remove {0} episode(s)",
|
"MessageRemoveEpisodes": "Remove {0} episode(s)",
|
||||||
@ -804,6 +806,9 @@
|
|||||||
"MessageTaskOpmlImportFeedPodcastExists": "Podcast already exists at path",
|
"MessageTaskOpmlImportFeedPodcastExists": "Podcast already exists at path",
|
||||||
"MessageTaskOpmlImportFeedPodcastFailed": "Failed to create podcast",
|
"MessageTaskOpmlImportFeedPodcastFailed": "Failed to create podcast",
|
||||||
"MessageTaskOpmlImportFinished": "Added {0} podcasts",
|
"MessageTaskOpmlImportFinished": "Added {0} podcasts",
|
||||||
|
"MessageTaskOpmlParseFailed": "Failed to parse OPML file",
|
||||||
|
"MessageTaskOpmlParseFastFail": "Invalid OPML file <opml> tag not found OR an <outline> tag was not found",
|
||||||
|
"MessageTaskOpmlParseNoneFound": "No feeds found in OPML file",
|
||||||
"MessageTaskScanItemsAdded": "{0} added",
|
"MessageTaskScanItemsAdded": "{0} added",
|
||||||
"MessageTaskScanItemsMissing": "{0} missing",
|
"MessageTaskScanItemsMissing": "{0} missing",
|
||||||
"MessageTaskScanItemsUpdated": "{0} updated",
|
"MessageTaskScanItemsUpdated": "{0} updated",
|
||||||
|
Loading…
Reference in New Issue
Block a user