Fix urlmatch test
This commit is contained in:
parent
1501055513
commit
ad8a46f67a
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ def _check_stripurl(strip, scraperobj):
|
||||||
return
|
return
|
||||||
# test that the stripUrl regex matches the retrieved strip URL
|
# test that the stripUrl regex matches the retrieved strip URL
|
||||||
urlmatch = re.escape(scraperobj.stripUrl)
|
urlmatch = re.escape(scraperobj.stripUrl)
|
||||||
urlmatch = urlmatch.replace(r"\%s", r".+")
|
urlmatch = urlmatch.replace(r"%s", r".+")
|
||||||
urlmatch = "^%s$" % urlmatch
|
urlmatch = "^%s$" % urlmatch
|
||||||
ro = re.compile(urlmatch)
|
ro = re.compile(urlmatch)
|
||||||
mo = ro.search(strip.strip_url)
|
mo = ro.search(strip.strip_url)
|
||||||
|
|
Loading…
Reference in a new issue