mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-02-14 22:29:41 +00:00
added podcast support
This commit is contained in:
parent
7e4d0daf82
commit
4b91a7e3f9
3 changed files with 9 additions and 10 deletions
|
|
@ -364,7 +364,11 @@ export default {
|
|||
const containsAudio = item.files.some(file => globals.SupportedAudioTypes.includes(Path.extname(file.name).toLowerCase().slice(1)))
|
||||
|
||||
const exists = await this.$axios
|
||||
.$post(`/api/filesystem/pathexists`, { directory: item.directory, folderPath: this.selectedFolder.fullPath, filenames: item.files.map((f) => f.name), allowBookFiles: !containsBook, allowAudioFiles: !containsAudio })
|
||||
.$post(`/api/filesystem/pathexists`, { directory: item.directory, folderPath: this.selectedFolder.fullPath, filenames: item.files.map((f) => f.name),
|
||||
...(this.selectedLibrary.mediaType === 'podcast'
|
||||
? { allowBookFiles: !containsBook, allowAudioFiles: true }
|
||||
: { allowBookFiles: !containsBook, allowAudioFiles: !containsAudio })
|
||||
})
|
||||
.then((data) => {
|
||||
if (data.exists) {
|
||||
if (data.libraryItemTitle) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue