Compare commits
	
		
			2 Commits
		
	
	
		
			a9442bfa96
			...
			08612e431b
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 08612e431b | |||
| b3109968cf | 
| @ -62,7 +62,7 @@ async function VRCYoutubeSearch(pool, query, options = {}) { | |||||||
| 			}; | 			}; | ||||||
| 			else { | 			else { | ||||||
| 				video.thumbnail ||= { | 				video.thumbnail ||= { | ||||||
| 					url: `https://i.ytimg.com/vi/${data.videoId}/mqdefault.jpg`, | 					url: `https://i.ytimg.com/vi/${video.id}/mqdefault.jpg`, | ||||||
| 					width: 320, | 					width: 320, | ||||||
| 					height: 180 | 					height: 180 | ||||||
| 				}; | 				}; | ||||||
|  | |||||||
| @ -41,10 +41,7 @@ async function createImageSheet(images /*[{width, height, url}]*/, legacyMode) { | |||||||
| 		ctx.drawImage(image, x, y, w, h); | 		ctx.drawImage(image, x, y, w, h); | ||||||
| 	})().catch(error => console.error("imageload", error.stack)))); | 	})().catch(error => console.error("imageload", error.stack)))); | ||||||
| 
 | 
 | ||||||
| 	return { | 	return canvas.toBuffer("image/png"); | ||||||
| 		imagesheet: canvas.toBuffer("image/png"), |  | ||||||
| 		images |  | ||||||
| 	}; |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| export async function makeImageSheetVrcUrl(pool, images, legacyMode) { | export async function makeImageSheetVrcUrl(pool, images, legacyMode) { | ||||||
| @ -64,5 +61,5 @@ export async function makeImageSheetVrcUrl(pool, images, legacyMode) { | |||||||
| } | } | ||||||
| 
 | 
 | ||||||
| export async function getImageSheet(pool, num) { | export async function getImageSheet(pool, num) { | ||||||
| 	return (await store[`${pool}:${num}`])?.imagesheet; | 	return await store[`${pool}:${num}`]; | ||||||
| } | } | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user