diff options
author | gy-chen <gychen@gyhost.icu> | 2024-03-23 23:30:13 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-23 15:30:13 +0000 |
commit | 71211e7db7243377f862dfdea9a9c3a511df66c2 (patch) | |
tree | 23faec0fdf5b52f146ee29e4cd044c0496c65347 | |
parent | a96a45b2cdcfa5f20ae4264bed268cce93fbc521 (diff) |
[Youtube] Fix unwanted private method __ie_msg in f8b0135850
Fixes `AttributeError no attribute '_YoutubeIE__ie_msg'` if unable to decode n-parameter
-rw-r--r-- | youtube_dl/extractor/youtube.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index db840fc45..90c16e172 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -1647,10 +1647,10 @@ class YoutubeIE(YoutubeBaseInfoExtractor): except JSInterpreter.Exception as e: self.report_warning( '%s (%s %s)' % ( - self.__ie_msg( - 'Unable to decode n-parameter: download likely to be throttled'), + 'Unable to decode n-parameter: download likely to be throttled', error_to_compat_str(e), - traceback.format_exc())) + traceback.format_exc()), + video_id=video_id) return self.write_debug('Decrypted nsig {0} => {1}'.format(n, ret)) |