mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-11-04 08:35:12 +00:00 
			
		
		
		
	[gfycat] Updated tests.
This commit is contained in:
		@@ -8,7 +8,8 @@ from .common import InfoExtractor
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
class GfycatIE(InfoExtractor):
 | 
					class GfycatIE(InfoExtractor):
 | 
				
			||||||
    _VALID_URL = r'https?://(?:www\.)?gfycat\.com/(?P<id>[^/?#]+)'
 | 
					    _VALID_URL = r'https?://(?:www\.)?gfycat\.com/(?P<id>[^/?#]+)'
 | 
				
			||||||
    _TESTS = [{
 | 
					    _TESTS = [
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
            'url': 'http://gfycat.com/DeadlyDecisiveGermanpinscher',
 | 
					            'url': 'http://gfycat.com/DeadlyDecisiveGermanpinscher',
 | 
				
			||||||
            'info_dict': {
 | 
					            'info_dict': {
 | 
				
			||||||
                'id':          'DeadlyDecisiveGermanpinscher',
 | 
					                'id':          'DeadlyDecisiveGermanpinscher',
 | 
				
			||||||
@@ -23,16 +24,23 @@ class GfycatIE(InfoExtractor):
 | 
				
			|||||||
                'title':       'PleasingHilariousKusimanse',
 | 
					                'title':       'PleasingHilariousKusimanse',
 | 
				
			||||||
                'ext':         'webm',
 | 
					                'ext':         'webm',
 | 
				
			||||||
                'upload_date': '20150412'
 | 
					                'upload_date': '20150412'
 | 
				
			||||||
        }
 | 
					            },
 | 
				
			||||||
 | 
					            'params': {
 | 
				
			||||||
 | 
					                'format': 'webm',
 | 
				
			||||||
 | 
					            },
 | 
				
			||||||
        },{
 | 
					        },{
 | 
				
			||||||
            'url': 'http://gfycat.com/requiredunkemptbuzzard',
 | 
					            'url': 'http://gfycat.com/requiredunkemptbuzzard',
 | 
				
			||||||
            'info_dict': {
 | 
					            'info_dict': {
 | 
				
			||||||
                'id':          'requiredunkemptbuzzard',
 | 
					                'id':          'requiredunkemptbuzzard',
 | 
				
			||||||
                'title':       'Headshot!',
 | 
					                'title':       'Headshot!',
 | 
				
			||||||
                'ext':         'gif',
 | 
					                'ext':         'gif',
 | 
				
			||||||
            'upload_date': '20150130'
 | 
					                'upload_date': '20150129'
 | 
				
			||||||
        }
 | 
					            },
 | 
				
			||||||
    }]
 | 
					            'params': {
 | 
				
			||||||
 | 
					                'format': 'gif',
 | 
				
			||||||
 | 
					            },
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					    ]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def _real_extract(self, url):
 | 
					    def _real_extract(self, url):
 | 
				
			||||||
        video_id = self._match_id(url)
 | 
					        video_id = self._match_id(url)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user