mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-04 10:04:39 +02:00
Fix incorrect downloadUrl
This commit is contained in:
parent
7cc35e4b96
commit
7aae1edf3c
1 changed files with 4 additions and 1 deletions
|
@ -112,9 +112,12 @@ extension DownloadItemPart {
|
|||
self.episode = episode
|
||||
|
||||
let config = Store.serverConfig!
|
||||
var downloadUrl = "\(config.address)\(serverPath)?token=\(config.token)"
|
||||
var downloadUrl = ""
|
||||
if (serverPath.hasSuffix("/cover")) {
|
||||
downloadUrl += "\(config.address)\(serverPath)?token=\(config.token)"
|
||||
downloadUrl += "&format=jpeg" // For cover images force to jpeg
|
||||
} else {
|
||||
downloadUrl = destination
|
||||
}
|
||||
self.uri = downloadUrl
|
||||
self.destinationUri = destination
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue