Wrap hitomi upload date in a Try/Catch to solve errors
This commit is contained in:
parent
a5276fdadc
commit
4733a62980
1 changed files with 5 additions and 1 deletions
|
|
@ -106,7 +106,11 @@ class Hitomi(delegate: HttpSource, val context: Context) :
|
|||
}
|
||||
}
|
||||
|
||||
uploadDate = DATE_FORMAT.parse(input.selectFirst(".gallery-info .date").text())!!.time
|
||||
uploadDate = try {
|
||||
DATE_FORMAT.parse(input.selectFirst(".gallery-info .date").text())!!.time
|
||||
} catch (e: Exception) {
|
||||
null
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue