mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	Fix subtitle download error reporting (Fixes #2724)
This commit is contained in:
		
							
								
								
									
										2
									
								
								youtube_dl/YoutubeDL.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										2
									
								
								youtube_dl/YoutubeDL.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							| @@ -936,7 +936,7 @@ class YoutubeDL(object): | ||||
|                         with io.open(encodeFilename(sub_filename), 'w', encoding='utf-8') as subfile: | ||||
|                                 subfile.write(sub) | ||||
|                 except (OSError, IOError): | ||||
|                     self.report_error('Cannot write subtitles file ' + descfn) | ||||
|                     self.report_error('Cannot write subtitles file ' + sub_filename) | ||||
|                     return | ||||
|  | ||||
|         if self.params.get('writeinfojson', False): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 robbie
					robbie