1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-12-16 13:08:55 +00:00

Merge branch 'yt-dlp:master' into pr/yt-live-from-start-range

This commit is contained in:
bashonly
2024-03-19 15:18:22 -05:00
282 changed files with 3479 additions and 3113 deletions

View File

@@ -262,7 +262,7 @@ class InfoExtractor:
direct: True if a direct video file was given (must only be set by GenericIE)
alt_title: A secondary title of the video.
display_id An alternative identifier for the video, not necessarily
display_id: An alternative identifier for the video, not necessarily
unique, but available before title. Typically, id is
something like "4234987", title "Dancing naked mole rats",
and display_id "dancing-naked-mole-rats"
@@ -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):