projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d627cec
)
[youporn] Fix sources regex
author
Sergey M․
<dstftw@gmail.com>
Fri, 4 Mar 2016 19:51:27 +0000
(
01:51
+0600)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 4 Mar 2016 19:51:27 +0000
(
01:51
+0600)
youtube_dl/extractor/youporn.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/youporn.py
b/youtube_dl/extractor/youporn.py
index 567a8c5e60019787a95b5e15342d24c7ee1b2b36..1124fe6c280cb0e23bee3a41ea323165ec714dce 100644
(file)
--- 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)