[sunporno] Fix view_count extraction
authorNaglis Jonaitis <njonaitis@gmail.com>
Sat, 6 Jun 2015 10:58:20 +0000 (13:58 +0300)
committerNaglis Jonaitis <njonaitis@gmail.com>
Sat, 6 Jun 2015 10:58:52 +0000 (13:58 +0300)
youtube_dl/extractor/sunporno.py

index 854d01beeb5cefd1f82d7991ee2c0ce75ad33dfa..e527aa97188b1860e054f8af7c7bd7a33301729e 100644 (file)
@@ -44,7 +44,7 @@ class SunPornoIE(InfoExtractor):
             webpage, 'duration', fatal=False))
 
         view_count = int_or_none(self._html_search_regex(
-            r'class="views">\s*(\d+)\s*<',
+            r'class="views">(?:<noscript>)?\s*(\d+)\s*<',
             webpage, 'view count', fatal=False))
         comment_count = int_or_none(self._html_search_regex(
             r'(\d+)</b> Comments?',