[youporn] Fix sources regex
authorSergey M․ <dstftw@gmail.com>
Fri, 4 Mar 2016 19:51:27 +0000 (01:51 +0600)
committerSergey M․ <dstftw@gmail.com>
Fri, 4 Mar 2016 19:51:27 +0000 (01:51 +0600)
youtube_dl/extractor/youporn.py

index 567a8c5e60019787a95b5e15342d24c7ee1b2b36..1124fe6c280cb0e23bee3a41ea323165ec714dce 100644 (file)
@@ -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)