1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 02:32:33 +01:00

[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
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
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):

View File

@ -23,6 +23,18 @@ __tests__ = (
"#count" : 1279,
},
{
"#url" : "https://vipergirls.to/threads/4328304-2011-05-28-Danica-Simply-Beautiful-x112-4500x3000?highlight=foobar",
"#category": ("", "vipergirls", "thread"),
"#class" : vipergirls.VipergirlsThreadExtractor,
},
{
"#url" : "https://vipergirls.to/threads/4328304?foo=bar",
"#category": ("", "vipergirls", "thread"),
"#class" : vipergirls.VipergirlsThreadExtractor,
},
{
"#url" : "https://vipergirls.to/threads/4328304",
"#category": ("", "vipergirls", "thread"),