projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9e58ec
)
[sunporno] Fix view_count extraction
author
Naglis Jonaitis
<njonaitis@gmail.com>
Sat, 6 Jun 2015 10:58:20 +0000
(13:58 +0300)
committer
Naglis Jonaitis
<njonaitis@gmail.com>
Sat, 6 Jun 2015 10:58:52 +0000
(13:58 +0300)
youtube_dl/extractor/sunporno.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/sunporno.py
b/youtube_dl/extractor/sunporno.py
index 854d01beeb5cefd1f82d7991ee2c0ce75ad33dfa..e527aa97188b1860e054f8af7c7bd7a33301729e 100644
(file)
--- 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?',