0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-26 02:55:17 +00:00

[sunporno] Fix view_count extraction

This commit is contained in:
Naglis Jonaitis 2015-06-06 13:58:20 +03:00
parent a9e58ecd3f
commit 05aa9c82d9

View file

@ -44,7 +44,7 @@ def _real_extract(self, url):
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?',