[vipergirls] improve 'thread' URL pattern

allow for query parameters and fragments at tne end of URLs
This commit is contained in:
Mike Fährmann
2024-06-29 17:38:57 +02:00
parent ba51c1a8e4
commit d10bfa9065
2 changed files with 14 additions and 1 deletions

View File

@@ -101,7 +101,8 @@ class VipergirlsExtractor(Extractor):
class VipergirlsThreadExtractor(VipergirlsExtractor):
"""Extractor for vipergirls threads"""
subcategory = "thread"
pattern = BASE_PATTERN + r"/threads/(\d+)(?:-[^/?#]+)?(/page\d+)?$"
pattern = (BASE_PATTERN +
r"/threads/(\d+)(?:-[^/?#]+)?(/page\d+)?(?:$|#|\?(?!p=))")
example = "https://vipergirls.to/threads/12345-TITLE"
def __init__(self, match):