Fix minutes that format was not matched with rawLH format. (#1056)
This commit is contained in:
parent
207c1fc526
commit
7754674400
|
@ -5,7 +5,7 @@ ext {
|
|||
appName = 'Tachiyomi: LHTranslation'
|
||||
pkgNameSuffix = 'en.lhtranslation'
|
||||
extClass = '.LHTranslation'
|
||||
extVersionCode = 2
|
||||
extVersionCode = 3
|
||||
libVersion = '1.2'
|
||||
}
|
||||
|
||||
|
|
|
@ -120,7 +120,7 @@ class LHTranslation : ParsedHttpSource() {
|
|||
private fun parseChapterDate(date: String): Long {
|
||||
val value = date.split(' ')[0].toInt()
|
||||
return when {
|
||||
"minute(s) ago" in date -> Calendar.getInstance().apply {
|
||||
"min(s) ago" in date -> Calendar.getInstance().apply {
|
||||
add(Calendar.MINUTE, value * -1)
|
||||
set(Calendar.SECOND, 0)
|
||||
set(Calendar.MILLISECOND, 0)
|
||||
|
|
Loading…
Reference in New Issue