votes up 3

PornHub said: %s

Package:
Exception Class:
ExtractorError

Raise code

or_msg = self._html_search_regex(
            (r'(?s)<div[^>]+class=(["\'])(?:(?!\1).)*\b(?:removed|userMessageSection)\b(?:(?!\1).)*\1[^>]*>(?P<error>.+?)</div>',
             r'(?s)<section[^>]+class=["\']noVideo["\'][^>]*>(?P<error>.+?)</section>'),
            webpage, 'error message', default=None, group='error')
        if error_msg:
            error_msg = re.sub(r'\s+', ' ', error_msg)
            raise ExtractorError(
                'PornHub said: %s' % error_msg,
                expected=True, video_id=video_id)

        # video_title from flashvars contains whitespace instead of non-ASCII (see
        # http://www.pornhub.com/view_video.php?viewkey=1331683002), not relying
        # on that anymore.
        title = self._html_search_meta(
            

Ways to fix

votes up 3 votes down

When you are trying to download a video that has been deleted or disabled, you will get that kind of error. For example, in the command line:

youtube-dl http://www.pornhub.com/view_video.php?viewkey=1331683002

will get an error

[PornHub] 1331683002: Downloading pc webpage
ERROR: 1331683002: PornHub said: Video has been flagged for verification in acco
rdance with our trust and safety policy

Need to choose the correct video link to download the video.

Jun 26, 2021 nurlan.taghi answer
nurlan.taghi 6.3k

Add a possible fix

Please authorize to post fix