diff --git a/youtube_dl/extractor/ceskatelevize.py b/youtube_dl/extractor/ceskatelevize.py index 4ecc1a4d1..d69191713 100644 --- a/youtube_dl/extractor/ceskatelevize.py +++ b/youtube_dl/extractor/ceskatelevize.py @@ -390,7 +390,7 @@ class CeskaTelevizePoradyIE(InfoExtractor): return data_url # This would be so much easier with XPath - webpage_nolive = re.sub(r']*\bid=[\'"]live.*?', '', webpage, flags=re.S) + webpage_nolive = re.sub(r'(?s)]*\bid=[\'"]live.*?', '', webpage) matches = [compat_urlparse.urljoin('http://www.ceskatelevize.cz', fixup_hash(unescapeHTML(m.group('url')))) for m in re.finditer(r'(?:]*\bdata-url=|]*\bsrc=)(["\'])(?P[^"\']*)["\']',