Fix unshortenit + nuovo path per mixdrop
This commit is contained in:
@@ -556,6 +556,8 @@ class UnshortenIt(object):
|
|||||||
# fix by greko inizio
|
# fix by greko inizio
|
||||||
if not link:
|
if not link:
|
||||||
link = re.findall('action="(?:[^/]+.*?/[^/]+/([a-zA-Z0-9_]+))">', r.data)
|
link = re.findall('action="(?:[^/]+.*?/[^/]+/([a-zA-Z0-9_]+))">', r.data)
|
||||||
|
if not link:
|
||||||
|
link = scrapertools.find_single_match(r.data, r'a href="([^"]+)')
|
||||||
if link:
|
if link:
|
||||||
uri = link
|
uri = link
|
||||||
short = re.findall('^https?://.*?(https?://.*)', uri)
|
short = re.findall('^https?://.*?(https?://.*)', uri)
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
"ignore_urls": [],
|
"ignore_urls": [],
|
||||||
"patterns": [
|
"patterns": [
|
||||||
{
|
{
|
||||||
"pattern": "mixdrop.[^/]+/(?:f|e)/([a-z0-9]+)",
|
"pattern": "mixdrop[s]?.[^/]+/(?:f|e)/([a-z0-9]+)",
|
||||||
"url": "https://mixdrop.co/e/\\1"
|
"url": "https://mixdrop.co/e/\\1"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user