1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-26 18:34:32 +01:00

[pornhub] Fix view count extraction (#26621) (refs #26614)

This commit is contained in:
JChris246 2020-09-18 18:59:19 -04:00 committed by tsia
parent 36bf3f2d2c
commit fa52659eb6

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(