Wnacg(zh): Support webp and gif (#6018)

This commit is contained in:
AlphaBoom 2024-11-14 14:26:22 +08:00 committed by Draff
parent e435f0f3b8
commit 1e7b9b3a73
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = 'WNACG'
extClass = '.wnacg'
extVersionCode = 15
extVersionCode = 16
isNsfw = true
}

View File

@ -119,7 +119,7 @@ class wnacg : ParsedHttpSource(), ConfigurableSource {
}
override fun pageListParse(response: Response): List<Page> {
val regex = """//\S*(jpg|png)""".toRegex()
val regex = """//\S*(jpg|png|webp|gif)""".toRegex()
val galleryaid =
response.body.string()
return regex.findAll(galleryaid).mapIndexedTo(ArrayList()) { index, match ->