From d7cd97e8d8d42b500fea9abb2aa4ac9b0f98b2ad Mon Sep 17 00:00:00 2001 From: pukkandan Date: Wed, 21 Jun 2023 12:12:15 +0530 Subject: Fix bug in db3ad8a67661d7b234a6954d9c6a4a9b1749f5eb Closes #7367 --- yt_dlp/extractor/common.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'yt_dlp/extractor/common.py') diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py index 9662a7ee1..2ea36c63d 100644 --- a/yt_dlp/extractor/common.py +++ b/yt_dlp/extractor/common.py @@ -1297,8 +1297,9 @@ class InfoExtractor: def _get_netrc_login_info(self, netrc_machine=None): netrc_machine = netrc_machine or self._NETRC_MACHINE - cmd = self.get_param('netrc_cmd', '').format(netrc_machine) + cmd = self.get_param('netrc_cmd') if cmd: + cmd = cmd.replace('{}', netrc_machine) self.to_screen(f'Executing command: {cmd}') stdout, _, ret = Popen.run(cmd, text=True, shell=True, stdout=subprocess.PIPE) if ret != 0: -- cgit v1.2.3