Wnacg(zh): Support webp and gif (#6018)
This commit is contained in:
parent
e435f0f3b8
commit
1e7b9b3a73
@ -1,7 +1,7 @@
|
|||||||
ext {
|
ext {
|
||||||
extName = 'WNACG'
|
extName = 'WNACG'
|
||||||
extClass = '.wnacg'
|
extClass = '.wnacg'
|
||||||
extVersionCode = 15
|
extVersionCode = 16
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -119,7 +119,7 @@ class wnacg : ParsedHttpSource(), ConfigurableSource {
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun pageListParse(response: Response): List<Page> {
|
override fun pageListParse(response: Response): List<Page> {
|
||||||
val regex = """//\S*(jpg|png)""".toRegex()
|
val regex = """//\S*(jpg|png|webp|gif)""".toRegex()
|
||||||
val galleryaid =
|
val galleryaid =
|
||||||
response.body.string()
|
response.body.string()
|
||||||
return regex.findAll(galleryaid).mapIndexedTo(ArrayList()) { index, match ->
|
return regex.findAll(galleryaid).mapIndexedTo(ArrayList()) { index, match ->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user