mirror of
				https://github.com/ytdl-org/youtube-dl
				synced 2025-11-04 03:33:46 +00:00 
			
		
		
		
	[lrt] fix duration parsing
This commit is contained in:
		
							parent
							
								
									607d65fbce
								
							
						
					
					
						commit
						85367c3a47
					
				@ -37,8 +37,7 @@ class LRTIE(InfoExtractor):
 | 
				
			|||||||
        thumbnail = self._og_search_thumbnail(webpage)
 | 
					        thumbnail = self._og_search_thumbnail(webpage)
 | 
				
			||||||
        description = self._og_search_description(webpage)
 | 
					        description = self._og_search_description(webpage)
 | 
				
			||||||
        duration = parse_duration(self._search_regex(
 | 
					        duration = parse_duration(self._search_regex(
 | 
				
			||||||
            r"'duration':\s*'([^']+)',", webpage,
 | 
					            r"var record_len = '([0-9]+:[0-9]+:[0-9]+)';", webpage, 'record_len', fatal=False, default=None))
 | 
				
			||||||
            'duration', fatal=False, default=None))
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
        formats = []
 | 
					        formats = []
 | 
				
			||||||
        for js in re.findall(r'(?s)config:\s*(\{.*?\})', webpage):
 | 
					        for js in re.findall(r'(?s)config:\s*(\{.*?\})', webpage):
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user