mirror of
				https://codeberg.org/ashley/poke
				synced 2025-07-17 16:52:11 +00:00 
			
		
		
		
	add try and catch to about section owo :3
This commit is contained in:
		
							parent
							
								
									517f67958c
								
							
						
					
					
						commit
						18d303abd9
					
				| @ -122,11 +122,6 @@ async function video(v) { | ||||
|       var a = ""; | ||||
|     } | ||||
| 
 | ||||
|     const summary = await wiki | ||||
|       .summary(vid.author + " ") | ||||
|       .then((summary_) => | ||||
|         summary_.title !== "Not found." ? summary_ : "none" | ||||
|       ); | ||||
| 
 | ||||
|     desc = a.Channel?.Contents?.ItemSection?.About?.Description; | ||||
| 
 | ||||
| @ -135,6 +130,13 @@ async function video(v) { | ||||
|     const nightlyJsonData = getJson(nightlyRes); | ||||
| 
 | ||||
|     try { | ||||
|        | ||||
|     const summary = await wiki | ||||
|       .summary(vid.author + " ") | ||||
|       .then((summary_) => | ||||
|         summary_.title !== "Not found." ? summary_ : "none" | ||||
|       ); | ||||
|        | ||||
|       const headers = {}; | ||||
| 
 | ||||
|       var { data } = await curly.get(`${config.tubeApi}video?v=${v}`, { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Ashley
						Ashley