mirror of
				https://codeberg.org/ashley/poke
				synced 2025-07-17 16:52:11 +00:00 
			
		
		
		
	add try and catch to about section
This commit is contained in:
		
							parent
							
								
									2c237a8334
								
							
						
					
					
						commit
						cdab6720ad
					
				| @ -86,12 +86,19 @@ async function video(v) { | ||||
| 
 | ||||
|   var vid = await getJson(video_new_info); | ||||
|   if (checkUnexistingObject(vid)) { | ||||
|     const a = await fetch( | ||||
|   | ||||
|     var a; | ||||
|      | ||||
|     try { | ||||
|     var a = await fetch( | ||||
|       `${config.tubeApi}channel?id=${vid.authorId}&tab=about` | ||||
|     ) | ||||
|       .then((res) => res.text()) | ||||
|       .then((xml) => getJson(toJson(xml))); | ||||
| 
 | ||||
|     } catch { | ||||
|       var a = ""   | ||||
|     } | ||||
|      | ||||
|     const summary = await wiki | ||||
|       .summary(vid.author + " ") | ||||
|       .then((summary_) => | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Ashley
						Ashley