From: Sergey M․ Date: Fri, 4 Mar 2016 19:51:27 +0000 (+0600) Subject: [youporn] Fix sources regex X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=002c75524854033f02d03fa854a45d0fcd3ac74c;p=youtube-dl [youporn] Fix sources regex --- diff --git a/youtube_dl/extractor/youporn.py b/youtube_dl/extractor/youporn.py index 567a8c5e6..1124fe6c2 100644 --- a/youtube_dl/extractor/youporn.py +++ b/youtube_dl/extractor/youporn.py @@ -75,7 +75,7 @@ class YouPornIE(InfoExtractor): links = [] sources = self._search_regex( - r'sources\s*:\s*({.+?})', webpage, 'sources', default=None) + r'(?s)sources\s*:\s*({.+?})', webpage, 'sources', default=None) if sources: for _, link in re.findall(r'[^:]+\s*:\s*(["\'])(http.+?)\1', sources): links.append(link)