foxwells.vinboard: fix video thumbnail grabbing
This commit is contained in:
		
							parent
							
								
									f53222e0ea
								
							
						
					
					
						commit
						e7ed721c3f
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -187,7 +187,7 @@ async function findSuitableImage(msg) {
 | 
			
		|||
      out.video = true;
 | 
			
		||||
      out.attachment = true;
 | 
			
		||||
      out.url = "attachment://thumb.jpg";
 | 
			
		||||
      out.file = await fetch(attachment.proxy_url)
 | 
			
		||||
      out.file = await fetch(attachment.proxyURL + "?format=jpeg")
 | 
			
		||||
        .then((res) => res.arrayBuffer())
 | 
			
		||||
        .then((buf) => Buffer.from(buf));
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			@ -201,7 +201,7 @@ async function findSuitableImage(msg) {
 | 
			
		|||
    } else if (embed.video) {
 | 
			
		||||
      out.video = true;
 | 
			
		||||
      out.url = "attachment://thumb.jpg";
 | 
			
		||||
      out.file = await fetch(embed.video.proxy_url)
 | 
			
		||||
      out.file = await fetch(embed.video.proxyURL + "?format=jpeg")
 | 
			
		||||
        .then((res) => res.arrayBuffer())
 | 
			
		||||
        .then((buf) => Buffer.from(buf));
 | 
			
		||||
      break;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue