Skip to content

Commit e78d7ca

Browse files
gy-chenGitHub Actions
authored and
GitHub Actions
committed
[Youtube] Fix unwanted private method __ie_msg in f8b0135850
Fixes `AttributeError no attribute '_YoutubeIE__ie_msg'` if unable to decode n-parameter
1 parent a6e25bb commit e78d7ca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

youtube_dl/extractor/youtube.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1647,10 +1647,10 @@ def _decrypt_nsig(self, n, video_id, player_url):
16471647
except JSInterpreter.Exception as e:
16481648
self.report_warning(
16491649
'%s (%s %s)' % (
1650-
self.__ie_msg(
1651-
'Unable to decode n-parameter: download likely to be throttled'),
1650+
'Unable to decode n-parameter: download likely to be throttled',
16521651
error_to_compat_str(e),
1653-
traceback.format_exc()))
1652+
traceback.format_exc()),
1653+
video_id=video_id)
16541654
return
16551655

16561656
self.write_debug('Decrypted nsig {0} => {1}'.format(n, ret))

0 commit comments

Comments
 (0)