Fixed thumbnail on gallery info

This commit is contained in:
Pupil
2020-01-15 11:28:38 +09:00
parent e0ccac13c1
commit e81c189afc
3 changed files with 13 additions and 24 deletions

View File

@@ -68,8 +68,8 @@ fun getGallery(galleryID: Int) : Gallery {
href.slice(5 until href.indexOf('-'))
}
val thumbnails = getGalleryInfo(galleryID).map {
"$protocol//tn.hitomi.la/smalltn/$galleryID/${it.name}.jpg"
val thumbnails = getGalleryInfo(galleryID).map { galleryInfo ->
urlFromUrlFromHash(galleryID, galleryInfo, "smalltn", "jpg", "tn")
}
return Gallery(related, langList, cover, title, artists, groups, type, language, series, characters, tags, thumbnails)