mirror of
https://github.com/Dark25/aniyomi-extensions.git
synced 2024-10-28 08:09:37 +01:00
fix DATE_FORMAT
This commit is contained in:
parent
7e4bb21266
commit
fd56f5afba
1 changed files with 2 additions and 2 deletions
|
@ -433,7 +433,7 @@ class AniZone : AnimeHttpSource(), ConfigurableAnimeSource {
|
|||
|
||||
private fun parseDate(dateStr: String): Long {
|
||||
return try {
|
||||
dateFormat.parse(dateStr)!!.time
|
||||
DATE_FORMAT.parse(dateStr)!!.time
|
||||
} catch (_: ParseException) {
|
||||
0L
|
||||
}
|
||||
|
@ -447,7 +447,7 @@ class AniZone : AnimeHttpSource(), ConfigurableAnimeSource {
|
|||
|
||||
companion object {
|
||||
private val MULTILINE_REGEX = Regex("""\n{2,}""")
|
||||
private val dateFormat by lazy { SimpleDateFormat("yyyy-MM-dd", Locale.ENGLISH) }
|
||||
private val DATE_FORMAT by lazy { SimpleDateFormat("yyyy-MM-dd", Locale.ENGLISH) }
|
||||
|
||||
private const val ANIME_SNAPSHOT_KEY = "anime_snapshot_key"
|
||||
private const val EPISODE_SNAPSHOT_KEY = "episode_snapshot_key"
|
||||
|
|
Loading…
Reference in a new issue