[ceskatelevize] fix error with Python 2.6
This commit is contained in:
parent
b853edb7d9
commit
e2603c57e7
@ -390,7 +390,7 @@ class CeskaTelevizePoradyIE(InfoExtractor):
|
|||||||
return data_url
|
return data_url
|
||||||
|
|
||||||
# This would be so much easier with XPath
|
# This would be so much easier with XPath
|
||||||
webpage_nolive = re.sub(r'<section\b[^>]*\bid=[\'"]live.*?</section>', '', webpage, flags=re.S)
|
webpage_nolive = re.sub(r'(?s)<section\b[^>]*\bid=[\'"]live.*?</section>', '', webpage)
|
||||||
|
|
||||||
matches = [compat_urlparse.urljoin('http://www.ceskatelevize.cz', fixup_hash(unescapeHTML(m.group('url')))) for m in
|
matches = [compat_urlparse.urljoin('http://www.ceskatelevize.cz', fixup_hash(unescapeHTML(m.group('url')))) for m in
|
||||||
re.finditer(r'(?:<span[^>]*\bdata-url=|<iframe[^>]*\bsrc=)(["\'])(?P<url>[^"\']*)["\']',
|
re.finditer(r'(?:<span[^>]*\bdata-url=|<iframe[^>]*\bsrc=)(["\'])(?P<url>[^"\']*)["\']',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user