mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-03 21:47:36 -05:00 
			
		
		
		
	[YoutubeDL] store the subtitles to download in the 'requested_subtitles' field
We need to keep the orginal subtitles information, so that the '--load-info' option can be used to list or select the subtitles again. We'll also be able to have a separate field for storing the automatic captions info.
This commit is contained in:
		@@ -36,7 +36,7 @@ class BaseTestSubtitles(unittest.TestCase):
 | 
			
		||||
 | 
			
		||||
    def getSubtitles(self):
 | 
			
		||||
        info_dict = self.getInfoDict()
 | 
			
		||||
        subtitles = info_dict['subtitles']
 | 
			
		||||
        subtitles = info_dict['requested_subtitles']
 | 
			
		||||
        if not subtitles:
 | 
			
		||||
            return subtitles
 | 
			
		||||
        for sub_info in subtitles.values():
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user