mirror of
				https://codeberg.org/ashley/poke
				synced 2025-07-17 16:52:11 +00:00 
			
		
		
		
	new dislikles lol
This commit is contained in:
		
							parent
							
								
									df6b4f0e5c
								
							
						
					
					
						commit
						c5a29ea7a2
					
				| @ -41,13 +41,25 @@ class PokeTubeDislikesAPIManager  { | ||||
|    * @private | ||||
|    */ | ||||
|  async _getEngagementData() { | ||||
|   const fallbackUrl = `https://prod-poketube.testing.poketube.fun/api?v=${this.videoId}`; | ||||
|     const apiUrl = `http://prod-poketube.testing.poketube.fun/${this.videoId}&hash=d0550b6e28c8f93533a569c314d5b4e2`; | ||||
|     const fallbackUrl = `https://returnyoutubedislikeapi.com/votes?videoId=${this.videoId}`; | ||||
|    | ||||
|     const { fetch } = await import("undici"); | ||||
| 
 | ||||
|      | ||||
|     try { | ||||
|       const engagement = await fetch(fallbackUrl).then((res) => res.json()); | ||||
|       return engagement; | ||||
|     } catch { | ||||
|       try { | ||||
|         const engagement = await fetch(apiUrl).then((res) => res.json()); | ||||
|         return engagement; | ||||
|       } catch { | ||||
|         return null; | ||||
|       } | ||||
|     } | ||||
|   } | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|   /** | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Ashley
						Ashley