diff --git a/android/app/src/main/java/com/audiobookshelf/app/managers/DownloadItemManager.kt b/android/app/src/main/java/com/audiobookshelf/app/managers/DownloadItemManager.kt index c8b738a2..06bc84c0 100644 --- a/android/app/src/main/java/com/audiobookshelf/app/managers/DownloadItemManager.kt +++ b/android/app/src/main/java/com/audiobookshelf/app/managers/DownloadItemManager.kt @@ -5,7 +5,6 @@ import android.net.Uri import android.os.StatFs import android.util.Log import androidx.documentfile.provider.DocumentFile -import com.anggrayudi.storage.file.fullName import com.audiobookshelf.app.device.DeviceManager import com.audiobookshelf.app.device.FolderScanner import com.audiobookshelf.app.models.DownloadItem @@ -629,11 +628,8 @@ class DownloadItemManager( val expectedBaseName = part.filename.substringBeforeLast('.') return folder.listFiles().firstOrNull { document -> document.name == part.filename || - document.fullName == part.filename || (part.audioTrack != null && document.isFile && - (document.name ?: "").substringBeforeLast('.') == expectedBaseName) || - (part.audioTrack != null && document.isFile && - document.fullName.substringBeforeLast('.') == expectedBaseName) + (document.name ?: "").substringBeforeLast('.') == expectedBaseName) } } diff --git a/components/widgets/DownloadProgressIndicator.vue b/components/widgets/DownloadProgressIndicator.vue index 625cdc4f..be1d502c 100644 --- a/components/widgets/DownloadProgressIndicator.vue +++ b/components/widgets/DownloadProgressIndicator.vue @@ -95,4 +95,4 @@ export default { this.queueChangedListener?.remove() } } - + \ No newline at end of file