mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-19 08:13:56 +00:00
subtitle, image, and extension page fixes
This commit is contained in:
@@ -11,7 +11,7 @@ import java.io.ObjectInputStream
|
||||
import java.io.ObjectOutputStream
|
||||
import java.io.Serializable
|
||||
|
||||
data class Track(val url: String, val lang: String)
|
||||
data class Track(val url: String, val lang: String) : Serializable
|
||||
|
||||
open class Video(
|
||||
val url: String = "",
|
||||
|
||||
@@ -108,8 +108,11 @@ internal class AnimeExtensionInstaller(private val context: Context) {
|
||||
// Get the current download status
|
||||
.map {
|
||||
downloadManager.query(query).use { cursor ->
|
||||
cursor.moveToFirst()
|
||||
cursor.getInt(cursor.getColumnIndexOrThrow(DownloadManager.COLUMN_STATUS))
|
||||
if (cursor.moveToFirst()) {
|
||||
cursor.getInt(cursor.getColumnIndexOrThrow(DownloadManager.COLUMN_STATUS))
|
||||
} else {
|
||||
DownloadManager.STATUS_FAILED
|
||||
}
|
||||
}
|
||||
}
|
||||
// Ignore duplicate results
|
||||
|
||||
Reference in New Issue
Block a user