Skip to content

Commit

Permalink
[pornhub] Fix view count extraction (ytdl-org#26621) (refs ytdl-org#2…
Browse files Browse the repository at this point in the history
  • Loading branch information
JChris246 authored Sep 18, 2020
1 parent 6e65a2a commit 540b9f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion youtube_dl/extractor/pornhub.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ def add_video_url(video_url):
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(
Expand Down

0 comments on commit 540b9f5

Please sign in to comment.