mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-03 18:37:07 -05:00 
			
		
		
		
	[imgur] Use video id as title fallback (closes #18590)
This commit is contained in:
		@@ -27,6 +27,10 @@ class ImgurIE(InfoExtractor):
 | 
			
		||||
    }, {
 | 
			
		||||
        'url': 'https://i.imgur.com/crGpqCV.mp4',
 | 
			
		||||
        'only_matching': True,
 | 
			
		||||
    }, {
 | 
			
		||||
        # no title
 | 
			
		||||
        'url': 'https://i.imgur.com/jxBXAMC.gifv',
 | 
			
		||||
        'only_matching': True,
 | 
			
		||||
    }]
 | 
			
		||||
 | 
			
		||||
    def _real_extract(self, url):
 | 
			
		||||
@@ -87,7 +91,7 @@ class ImgurIE(InfoExtractor):
 | 
			
		||||
        return {
 | 
			
		||||
            'id': video_id,
 | 
			
		||||
            'formats': formats,
 | 
			
		||||
            'title': self._og_search_title(webpage),
 | 
			
		||||
            'title': self._og_search_title(webpage, default=video_id),
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user