1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-01-23 01:06:06 +08:00

Update pornhd.py

This commit is contained in:
Sergey M 2019-02-05 00:05:19 +07:00 committed by GitHub
parent e37c58f0b0
commit e054f6b5bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,6 +23,7 @@ class PornHdIE(InfoExtractor):
'description': 'md5:3748420395e03e31ac96857a8f125b2b',
'thumbnail': r're:^https?://.*\.jpg',
'view_count': int,
'like_count': int,
'age_limit': 18,
}
}, {
@ -37,6 +38,7 @@ class PornHdIE(InfoExtractor):
'description': 'md5:8ff0523848ac2b8f9b065ba781ccf294',
'thumbnail': r're:^https?://.*\.jpg',
'view_count': int,
'like_count': int,
'age_limit': 18,
},
'skip': 'Not available anymore',
@ -86,7 +88,9 @@ class PornHdIE(InfoExtractor):
'thumbnail', fatal=False, group='url')
like_count = int_or_none(self._search_regex(
r'save-count[\'"]>(\d+)', webpage, 'like count', fatal=False))
(r'(\d+)\s*</11[^>]+>(?:&nbsp;|\s)*\blikes',
r'class=["\']save-count["\'][^>]*>\s*(\d+)'),
webpage, 'like count', fatal=False))
return {
'id': video_id,