1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-02-08 18:32:54 +08:00

[pornhub] Fixed view count extraction

This commit is contained in:
JChris246 2020-09-18 18:04:42 -04:00
parent 6e65a2a67e
commit bb21c1f4d1

View File

@ -341,7 +341,7 @@ class PornHubIE(PornHubBaseIE):
webpage, 'uploader', fatal=False)
view_count = self._extract_count(
r'<span class="count">([\d,\.]+)</span> views', webpage, 'view')
r'<span class="count">([\d,\.]+)</span> [Vv]iews', webpage, 'view')
like_count = self._extract_count(
r'<span class="votesUp">([\d,\.]+)</span>', webpage, 'like')
dislike_count = self._extract_count(