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:
parent
ba51c1a8e4
commit
d10bfa9065
@ -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):
|
||||
|
@ -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"),
|
||||
|
Loading…
Reference in New Issue
Block a user