projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57a38a3
)
[pornhd] Fix extraction (closes #13783)
author
Sergey M․
<dstftw@gmail.com>
Fri, 4 Aug 2017 16:51:03 +0000
(23:51 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 4 Aug 2017 16:51:03 +0000
(23:51 +0700)
youtube_dl/extractor/pornhd.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/pornhd.py
b/youtube_dl/extractor/pornhd.py
index 842317e6c9cc2312064fae4e61e5703352aa0096..36761788dd9ca0c3f1a0a0e15493b2a812642357 100644
(file)
--- a/
youtube_dl/extractor/pornhd.py
+++ b/
youtube_dl/extractor/pornhd.py
@@
-54,7
+54,7
@@
class PornHdIE(InfoExtractor):
r'<title>(.+?) - .*?[Pp]ornHD.*?</title>'], webpage, 'title')
sources = self._parse_json(js_to_json(self._search_regex(
- r"(?s)
'sources'
\s*:\s*(\{.+?\})\s*\}[;,)]",
+ r"(?s)
sources'?
\s*:\s*(\{.+?\})\s*\}[;,)]",
webpage, 'sources', default='{}')), video_id)
if not sources: