WP-Comics - fix double pages (#2662)

This commit is contained in:
Mike 2020-04-13 17:20:48 -04:00 committed by GitHub
parent 090b7b4463
commit 7357093dde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: WP-Comics'
pkgNameSuffix = 'all.wpcomics'
extClass = '.WPComicsFactory'
extVersionCode = 1
extVersionCode = 2
libVersion = '1.2'
}

View File

@ -149,6 +149,7 @@ abstract class WPComics(
override fun pageListParse(document: Document): List<Page> {
return document.select(pageListSelector).mapNotNull { img -> imageOrNull(img) }
.distinct()
.mapIndexed { i, image -> Page(i, "", image)}
}