Update:Android support storing downloads to internal app storage #635

This commit is contained in:
advplyr
2023-06-03 17:24:32 -05:00
parent 87c74fe78b
commit e6aaccfc74
14 changed files with 715 additions and 61 deletions
+16 -6
View File
@@ -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')
}