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:
parent
957a21278f
commit
a5072d17f9
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue