mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-29 22:57:16 +02:00
Update:Android support storing downloads to internal app storage #635
This commit is contained in:
@@ -632,16 +632,26 @@ export default {
|
||||
})
|
||||
console.log('Folders with media type', this.mediaType, foldersWithMediaType.length)
|
||||
if (!foldersWithMediaType.length) {
|
||||
// No local folders or no local folders with this media type
|
||||
localFolder = await this.selectFolder()
|
||||
} else if (foldersWithMediaType.length == 1) {
|
||||
console.log('Only 1 local folder with this media type - auto select it')
|
||||
localFolder = foldersWithMediaType[0]
|
||||
localFolder = {
|
||||
id: `internal-${this.mediaType}`,
|
||||
name: 'App Storage',
|
||||
mediaType: this.mediaType
|
||||
}
|
||||
} else {
|
||||
console.log('Multiple folders with media type')
|
||||
this.showSelectLocalFolder = true
|
||||
return
|
||||
}
|
||||
// if (!foldersWithMediaType.length) {
|
||||
// // No local folders or no local folders with this media type
|
||||
// localFolder = await this.selectFolder()
|
||||
// } else if (foldersWithMediaType.length == 1) {
|
||||
// console.log('Only 1 local folder with this media type - auto select it')
|
||||
// localFolder = foldersWithMediaType[0]
|
||||
// } else {
|
||||
// console.log('Multiple folders with media type')
|
||||
// this.showSelectLocalFolder = true
|
||||
// return
|
||||
// }
|
||||
if (!localFolder) {
|
||||
return this.$toast.error('Invalid download folder')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user