Grab mp4 first instead of gif
This commit is contained in:
		
							parent
							
								
									169b36b499
								
							
						
					
					
						commit
						48ac10e1db
					
				| 
						 | 
				
			
			@ -351,7 +351,7 @@ async def main():
 | 
			
		|||
                            url = gfyitem.get('mp4Url', url)
 | 
			
		||||
                    elif random_post.is_reddit_media_domain and splitted[1] == '.gif' and preview:
 | 
			
		||||
                        preview = preview['images'][0]['variants']
 | 
			
		||||
                        for i in ('gif', 'mp4'):
 | 
			
		||||
                        for i in ('mp4', 'gif'):
 | 
			
		||||
                            if i in preview:
 | 
			
		||||
                                url = preview[i]['source']['url']
 | 
			
		||||
                                break
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue