Fix grouple parser

This commit is contained in:
Koitharu
2020-02-27 20:11:04 +02:00
parent 9adf19b898
commit f37e3aa9ab

View File

@@ -118,7 +118,7 @@ abstract class GroupleRepository(
val regex = Regex("['\"].*?['\"]")
return matches.map { x ->
val parts = regex.findAll(x.value).toList()
val url = parts[1].value.removeSurrounding('"', '\'') +
val url = parts[0].value.removeSurrounding('"', '\'') +
parts[2].value.removeSurrounding('"', '\'')
MangaPage(
id = url.longHashCode(),