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
+7 -2
View File
@@ -237,8 +237,13 @@ class HttpFD(FileDownloader):
def retry(e):
close_stream()
ctx.resume_len = (byte_counter if ctx.tmpfilename == '-'
else os.path.getsize(encodeFilename(ctx.tmpfilename)))
if ctx.tmpfilename == '-':
ctx.resume_len = byte_counter
else:
try:
ctx.resume_len = os.path.getsize(encodeFilename(ctx.tmpfilename))
except FileNotFoundError:
ctx.resume_len = 0
raise RetryDownload(e)
while True: