Wnacg(zh): Support webp and gif (#6018)
This commit is contained in:
parent
e435f0f3b8
commit
1e7b9b3a73
|
@ -1,7 +1,7 @@
|
|||
ext {
|
||||
extName = 'WNACG'
|
||||
extClass = '.wnacg'
|
||||
extVersionCode = 15
|
||||
extVersionCode = 16
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
|
|
|
@ -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 ->
|
||||
|
|
Loading…
Reference in New Issue