aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/sunporno.py
diff options
context:
space:
mode:
authorNaglis Jonaitis <njonaitis@gmail.com>2015-06-06 13:58:20 +0300
committerNaglis Jonaitis <njonaitis@gmail.com>2015-06-06 13:58:52 +0300
commit05aa9c82d90644af406519e5e25fefb0884d504e (patch)
tree6c5d6cccb2473154f4cd9ffd33fcef7731be6ddf /youtube_dl/extractor/sunporno.py
parenta9e58ecd3fdfa93cdc8a7f9fc852dbbd0814d6a4 (diff)
[sunporno] Fix view_count extraction
Diffstat (limited to 'youtube_dl/extractor/sunporno.py')
-rw-r--r--youtube_dl/extractor/sunporno.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/sunporno.py b/youtube_dl/extractor/sunporno.py
index 854d01bee..e527aa971 100644
--- a/youtube_dl/extractor/sunporno.py
+++ b/youtube_dl/extractor/sunporno.py
@@ -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?',