mirror of
				https://codeberg.org/ashley/poke
				synced 2025-07-17 16:52:11 +00:00 
			
		
		
		
	faster fetching :3
This commit is contained in:
		
							parent
							
								
									0f2a54bb50
								
							
						
					
					
						commit
						55d28b19d7
					
				| @ -27,6 +27,8 @@ module.exports = async function (video_id) { | ||||
|   const dislike = await fetch(`${dislike_api}${video_id}`).then((res) => | ||||
|     res.json() | ||||
|   ); | ||||
|    | ||||
|    | ||||
|   const dislikes = dislike.dislikes || "none"; | ||||
| 
 | ||||
|   const headers = {}; | ||||
| @ -41,6 +43,7 @@ module.exports = async function (video_id) { | ||||
|         var h = await player.text(); | ||||
|         var j = toJson(h); | ||||
|         return JSON.parse(j); | ||||
|         break; | ||||
|       } catch (err) { | ||||
|         if (err.status === 503) { | ||||
|           // retry after a bit
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Ashley
						Ashley