mirror of
				https://github.com/ytdl-org/youtube-dl
				synced 2025-11-03 19:23:44 +00:00 
			
		
		
		
	[generic] Extract RSS video timestamp
This commit is contained in:
		
							parent
							
								
									cc017e07ca
								
							
						
					
					
						commit
						5e822c2526
					
				@ -30,6 +30,7 @@ from ..utils import (
 | 
			
		||||
    smuggle_url,
 | 
			
		||||
    unescapeHTML,
 | 
			
		||||
    unified_strdate,
 | 
			
		||||
    unified_timestamp,
 | 
			
		||||
    unsmuggle_url,
 | 
			
		||||
    UnsupportedError,
 | 
			
		||||
    xpath_text,
 | 
			
		||||
@ -2208,6 +2209,8 @@ class GenericIE(InfoExtractor):
 | 
			
		||||
                'url': next_url,
 | 
			
		||||
                'title': it.find('title').text,
 | 
			
		||||
                'description': xpath_text(it, 'description', default=None),
 | 
			
		||||
                'timestamp': unified_timestamp(
 | 
			
		||||
                    xpath_text(it, 'pubDate', default=None)),
 | 
			
		||||
            })
 | 
			
		||||
 | 
			
		||||
        return {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user