Fix torrent count parsing

This partially reverts commit 634269c6a4.
This commit is contained in:
FooIbar authored and renovate[bot] committed 2024-08-27 07:37:30 +08:00
1 parent 383332bfbb
commit 94366553de
1 file changed
+1 -1
@@ -61,7 +61,7 @@ object GalleryDetailParser {
RegexOption.DOT_MATCHES_ALL,
)
private val PATTERN_TORRENT =
Regex("<a[^<>]*onclick=\"return popUp\\('([^']+)'[^)]+\\)\">Torrent Download[^<]+(\\d+)[^<]+</a")
Regex("<a[^<>]*onclick=\"return popUp\\('([^']+)'[^)]+\\)\">Torrent Download \\((\\d+)\\)</a>")
private val PATTERN_ARCHIVE =
Regex("<a[^<>]*onclick=\"return popUp\\('([^']+)'[^)]+\\)\">Archive Download</a>")
private val PATTERN_COVER = Regex("width:(\\d+)px; height:(\\d+)px.+?url\\((.+?)\\)")