mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	[downloader/fragment] Report warning instead of error on inconsistent download state
This commit is contained in:
		| @@ -158,7 +158,7 @@ class FragmentFD(FileDownloader): | |||||||
|             if os.path.isfile(encodeFilename(self.ytdl_filename(ctx['filename']))): |             if os.path.isfile(encodeFilename(self.ytdl_filename(ctx['filename']))): | ||||||
|                 self._read_ytdl_file(ctx) |                 self._read_ytdl_file(ctx) | ||||||
|                 if ctx['fragment_index'] > 0 and resume_len == 0: |                 if ctx['fragment_index'] > 0 and resume_len == 0: | ||||||
|                     self.report_error( |                     self.report_warning( | ||||||
|                         'Inconsistent state of incomplete fragment download. ' |                         'Inconsistent state of incomplete fragment download. ' | ||||||
|                         'Restarting from the beginning...') |                         'Restarting from the beginning...') | ||||||
|                     ctx['fragment_index'] = resume_len = 0 |                     ctx['fragment_index'] = resume_len = 0 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Sergey M․
					Sergey M․