Skip to content

Commit

Permalink
[Youtube] Fix unwanted private method __ie_msg in f8b0135
Browse files Browse the repository at this point in the history
Fixes `AttributeError no attribute '_YoutubeIE__ie_msg'` if unable to decode n-parameter
  • Loading branch information
gy-chen authored Mar 23, 2024
1 parent a96a45b commit 71211e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions youtube_dl/extractor/youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -1647,10 +1647,10 @@ def _decrypt_nsig(self, n, video_id, player_url):
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))
Expand Down

0 comments on commit 71211e7

Please sign in to comment.