mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-04 10:27:07 -05:00 
			
		
		
		
	[gfycat] Update API endpoint (closes #18333)
This commit is contained in:
		@@ -53,7 +53,7 @@ class GfycatIE(InfoExtractor):
 | 
				
			|||||||
        video_id = self._match_id(url)
 | 
					        video_id = self._match_id(url)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        gfy = self._download_json(
 | 
					        gfy = self._download_json(
 | 
				
			||||||
            'http://gfycat.com/cajax/get/%s' % video_id,
 | 
					            'https://api.gfycat.com/v1/gfycats/%s' % video_id,
 | 
				
			||||||
            video_id, 'Downloading video info')
 | 
					            video_id, 'Downloading video info')
 | 
				
			||||||
        if 'error' in gfy:
 | 
					        if 'error' in gfy:
 | 
				
			||||||
            raise ExtractorError('Gfycat said: ' + gfy['error'], expected=True)
 | 
					            raise ExtractorError('Gfycat said: ' + gfy['error'], expected=True)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user