Skip to content

A feature-rich command-line audio/video downloader

[youporn] Fix sources regex

Sergey M․002c75524854
diff --git a/youtube_dl/extractor/youporn.py b/youtube_dl/extractor/youporn.py
index 567a8c5e60..1124fe6c28 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)