PornHub said: %s
Package:
youtube-dl
99648

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(
Links to the raise (1)
https://github.com/ytdl-org/youtube-dl/blob/dfbbe2902fc67f0f93ee47a8077c148055c67a9b/youtube_dl/extractor/pornhub.py#L274Ways to fix
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.
Add a possible fix
Please authorize to post fix