X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=youtube_dl%2Fextractor%2Fpornhub.py;h=0724efc09963d1f84fc7b24ec99d89b58e1bdfb6;hb=853a71b628bbf1626c301dc66f496464ad796b2e;hp=d2c92531b0745ed189da699f4392725f2d4cddd6;hpb=0b68de3cc1f99ce8c49a497245c02d4d03201aa8;p=youtube-dl.git diff --git a/youtube_dl/extractor/pornhub.py b/youtube_dl/extractor/pornhub.py index d2c92531b..0724efc09 100644 --- a/youtube_dl/extractor/pornhub.py +++ b/youtube_dl/extractor/pornhub.py @@ -15,6 +15,7 @@ from ..compat import ( from ..utils import ( ExtractorError, int_or_none, + js_to_json, orderedSet, sanitized_Request, str_to_int, @@ -48,6 +49,8 @@ class PornHubIE(InfoExtractor): 'dislike_count': int, 'comment_count': int, 'age_limit': 18, + 'tags': list, + 'categories': list, }, }, { # non-ASCII title @@ -63,6 +66,8 @@ class PornHubIE(InfoExtractor): 'dislike_count': int, 'comment_count': int, 'age_limit': 18, + 'tags': list, + 'categories': list, }, 'params': { 'skip_download': True, @@ -111,7 +116,7 @@ class PornHubIE(InfoExtractor): webpage = self._download_webpage(req, video_id) error_msg = self._html_search_regex( - r'(?s)