diff --git a/youtube_dl/extractor/pornhd.py b/youtube_dl/extractor/pornhd.py index b52879c7a44..534f06277a8 100644 --- a/youtube_dl/extractor/pornhd.py +++ b/youtube_dl/extractor/pornhd.py @@ -85,6 +85,9 @@ def _real_extract(self, url): r"poster'?\s*:\s*([\"'])(?P(?:(?!\1).)+)\1", webpage, 'thumbnail', fatal=False, group='url') + like_count = int_or_none(self._search_regex( + r'class="save-count">(\d+)<', webpage, 'like_count', fatal=False)) + return { 'id': video_id, 'display_id': display_id, @@ -94,4 +97,5 @@ def _real_extract(self, url): 'view_count': view_count, 'formats': formats, 'age_limit': 18, + 'like_count': like_count, } diff --git a/youtube_dl/extractor/pornhub.py b/youtube_dl/extractor/pornhub.py index be93d5d4832..b9cc459d470 100644 --- a/youtube_dl/extractor/pornhub.py +++ b/youtube_dl/extractor/pornhub.py @@ -446,4 +446,4 @@ def _real_extract(self, url): break entries.extend(page_entries) - return self.playlist_result(entries, user_id) + return self.playlist_result(entries, user_id)