diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2024-03-10 19:52:49 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2024-03-11 00:51:26 +0530 |
commit | 93240fc1848de4a94f25844c96e0dcd282ef1d3b (patch) | |
tree | 0008ef502170dfeec7a81181345c8b0942d1efa1 /yt_dlp/extractor/common.py | |
parent | 47ab66db0f083a76c7fba0f6e136b21dd5a93e3b (diff) |
[cleanup] Fix misc bugs (#8968)
Closes #8816
Authored by: bashonly, seproDev, pukkandan, Grub4k
Diffstat (limited to 'yt_dlp/extractor/common.py')
-rw-r--r-- | yt_dlp/extractor/common.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py index f57963da2..e776ccae9 100644 --- a/yt_dlp/extractor/common.py +++ b/yt_dlp/extractor/common.py @@ -747,7 +747,7 @@ class InfoExtractor: raise except ExtractorError as e: e.video_id = e.video_id or self.get_temp_id(url) - e.ie = e.ie or self.IE_NAME, + e.ie = e.ie or self.IE_NAME e.traceback = e.traceback or sys.exc_info()[2] raise except IncompleteRead as e: @@ -1339,7 +1339,10 @@ class InfoExtractor: else: return None, None if not info: - raise netrc.NetrcParseError(f'No authenticators for {netrc_machine}') + self.to_screen(f'No authenticators for {netrc_machine}') + return None, None + + self.write_debug(f'Using netrc for {netrc_machine} authentication') return info[0], info[2] def _get_login_info(self, username_option='username', password_option='password', netrc_machine=None): |