Add date upload field to Guya. (#2132)

This commit is contained in:
funkyhippo 2020-01-26 14:41:20 -08:00 committed by arkon
parent 96116dac10
commit 8e2bf3a8f1
2 changed files with 2 additions and 1 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: Guya' appName = 'Tachiyomi: Guya'
pkgNameSuffix = "en.guya" pkgNameSuffix = "en.guya"
extClass = '.Guya' extClass = '.Guya'
extVersionCode = 8 extVersionCode = 9
libVersion = '1.2' libVersion = '1.2'
} }

View File

@ -273,6 +273,7 @@ open class Guya() : ConfigurableSource, HttpSource() {
// Get the scanlator info based on group ranking; do it first since we need it later // Get the scanlator info based on group ranking; do it first since we need it later
val firstGroupId = getBestScanlator(json.getJSONObject("groups"), sort) val firstGroupId = getBestScanlator(json.getJSONObject("groups"), sort)
chapter.scanlator = Scanlators.getValueFromKey(firstGroupId) chapter.scanlator = Scanlators.getValueFromKey(firstGroupId)
chapter.date_upload = json.getJSONObject("release_date").getLong(firstGroupId) * 1000
chapter.name = num + " - " + json.getString("title") chapter.name = num + " - " + json.getString("title")
chapter.chapter_number = num.toFloat() chapter.chapter_number = num.toFloat()
chapter.url = "$slug/$num/$firstGroupId" chapter.url = "$slug/$num/$firstGroupId"