]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[pornhd] Fix extraction (closes #13783)
authorSergey M․ <dstftw@gmail.com>
Fri, 4 Aug 2017 16:51:03 +0000 (23:51 +0700)
committerSergey M․ <dstftw@gmail.com>
Fri, 4 Aug 2017 16:51:03 +0000 (23:51 +0700)
youtube_dl/extractor/pornhd.py

index 842317e6c9cc2312064fae4e61e5703352aa0096..36761788dd9ca0c3f1a0a0e15493b2a812642357 100644 (file)
@@ -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: