Fix URL encoding, fix download m4b cover art

This commit is contained in:
advplyr 2021-10-06 13:00:12 -05:00
parent 19dcb6173e
commit 75aede914f
7 changed files with 19 additions and 14 deletions

View file

@ -240,8 +240,8 @@ class DownloadManager {
}
if (shouldIncludeCover) {
var _cover = audiobook.book.cover
if (_cover.startsWith(Path.sep + 'local')) {
var _cover = audiobook.book.coverFullPath
if (!_cover && audiobook.book.cover && audiobook.book.cover.startsWith(Path.sep + 'local')) {
_cover = Path.join(this.AudiobookPath, _cover.replace(Path.sep + 'local', ''))
Logger.debug('Local cover url', _cover)
}