0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-25 02:45:12 +00:00

Reword error message

This commit is contained in:
sepro 2024-11-20 02:49:42 +01:00
parent b3fc89d98e
commit f040705f67

View file

@ -122,7 +122,7 @@ def _real_extract(self, url):
query=traverse_obj(parse_qs(url), {'token': 'token', 'expires': 'expires'})) query=traverse_obj(parse_qs(url), {'token': 'token', 'expires': 'expires'}))
if html_title := self._html_extract_title(webpage, default=None) == '403': if html_title := self._html_extract_title(webpage, default=None) == '403':
raise ExtractorError('This video is inaccessible. Consider passing a Referer', expected=True) raise ExtractorError('This video is inaccessible. Setting a Referer header might be required to access the video', expected=True)
elif html_title == '404': elif html_title == '404':
raise ExtractorError('This video does not exist', expected=True) raise ExtractorError('This video does not exist', expected=True)