mirror of
				https://codeberg.org/ashley/poke
				synced 2025-07-17 16:52:11 +00:00 
			
		
		
		
	Update server.js
This commit is contained in:
		
							parent
							
								
									d29194ca8a
								
							
						
					
					
						commit
						9ace865acd
					
				| @ -15,11 +15,6 @@ app.get("/watch", async function(req, res) { | |||||||
|   var url = req.query.v; |   var url = req.query.v; | ||||||
|   var uu = `https://www.youtube.com/watch?v=${url}`; |   var uu = `https://www.youtube.com/watch?v=${url}`; | ||||||
| 
 | 
 | ||||||
|   var opts = { |  | ||||||
|     maxResults: 1, |  | ||||||
|     key: process.env.yt |  | ||||||
|   }; |  | ||||||
| 
 |  | ||||||
|   const json = await fetch(`https://yt-proxy-api.herokuapp.com/get_player_info?v=${url}`) |   const json = await fetch(`https://yt-proxy-api.herokuapp.com/get_player_info?v=${url}`) | ||||||
|     .then((res) => res.json()); |     .then((res) => res.json()); | ||||||
| 
 | 
 | ||||||
| @ -38,10 +33,6 @@ app.get("/watch", async function(req, res) { | |||||||
|   app.get("/", function(req, res) { |   app.get("/", function(req, res) { | ||||||
|      renderTemplate(res, req, "ytmain.ejs") |      renderTemplate(res, req, "ytmain.ejs") | ||||||
|  }); |  }); | ||||||
|    |  | ||||||
|   |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| app.get("/youtube/ara", async (req, res) => { | app.get("/youtube/ara", async (req, res) => { | ||||||
|   const query = req.query.query |   const query = req.query.query | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Ashley
						Ashley