Wrap hitomi upload date in a Try/Catch to solve errors
This commit is contained in:
parent
a5276fdadc
commit
4733a62980
@ -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…
x
Reference in New Issue
Block a user