1
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-03-09 12:50:23 -05:00

cleanup again

Authored by: bashonly
This commit is contained in:
bashonly 2025-02-23 00:49:33 -06:00
parent 957a21278f
commit a5072d17f9
No known key found for this signature in database
GPG key ID: 783F096F253D15B0

View file

@ -250,10 +250,10 @@ def _extract_web_data_and_status(self, url, video_id, fatal=True):
raise ExtractorError('Unable to extract webpage video data')
if not traverse_obj(video_data, ('video', {dict})) and traverse_obj(video_data, ('isContentClassified', {bool})):
msg = 'This post may not be comfortable for some audiences. Log in for access'
message = 'This post may not be comfortable for some audiences. Log in for access'
if fatal:
self.raise_login_required(msg)
self.report_warning(msg, video_id=video_id)
self.raise_login_required(message)
self.report_warning(f'{message}. {self._login_hint()}', video_id=video_id)
return video_data, status