Add date upload field to Guya. (#2132)
This commit is contained in:
parent
96116dac10
commit
8e2bf3a8f1
@ -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'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user