dramajc fix regex

This commit is contained in:
dbacalov
2019-01-15 11:13:42 -03:00
parent e7d092f24c
commit 4b9902fff6

View File

@@ -208,7 +208,8 @@ def findvideos(item):
data = scrapertools.unescape(data)
data = scrapertools.decodeHtmlentities(data)
patron = 'id="(Opt\d+)">.*?src="([^"]+)" frameborder.*?</iframe>'
# patron = 'id="(Opt\d+)">.*?src="([^"]+)" frameborder.*?</iframe>'
patron = 'id="(Opt\d+)">.*?src="(?!about:blank)([^"]+)" frameborder.*?</iframe>'
matches = re.compile(patron, re.DOTALL).findall(data)
for option, scrapedurl in matches: