Wrap hitomi upload date in a Try/Catch to solve errors

This commit is contained in:
Jobobby04 2020-08-12 13:39:20 -04:00
parent a5276fdadc
commit 4733a62980

View File

@ -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
}
} }
} }