mirror of
				https://codeberg.org/ashley/poke
				synced 2025-07-17 16:52:11 +00:00 
			
		
		
		
	remove /old
This commit is contained in:
		
							parent
							
								
									ecdc887ff8
								
							
						
					
					
						commit
						981a63c4d5
					
				
							
								
								
									
										20
									
								
								server.js
									
									
									
									
									
								
							
							
						
						
									
										20
									
								
								server.js
									
									
									
									
									
								
							| @ -361,26 +361,8 @@ app.get("/old/watch", async function (req, res) { | ||||
|   var v = req.query.v; | ||||
|   var e = req.query.e; | ||||
|   if (!v) res.redirect("/"); | ||||
|   var fetching = await fetcher(v); | ||||
|   const j = fetching.video.Player.Formats.Format, | ||||
|     j_ = Array.isArray(j) ? j[j.length - 1] : j; | ||||
|   let url; | ||||
|   if (j_.URL != undefined) url = j_.URL; | ||||
|   const json = fetching.video.Player; | ||||
|   const engagement = fetching.engagement; | ||||
|     const lyrics = "" | ||||
|    | ||||
|    renderTemplate(res, req, "poketube-old.ejs", { | ||||
|     url: url, | ||||
|     color: await getColors( | ||||
|       `https://i.ytimg.com/vi/${v}/maxresdefault.jpg` | ||||
|     ).then((colors) => colors[0].hex()), | ||||
|     engagement: engagement, | ||||
|     video: json, | ||||
|     date: "see the new ui", //return ""
 | ||||
|     e: e, | ||||
|       lyrics: "none, see the new ui", | ||||
|   }); | ||||
|    res.redirect(`/watch?v=${v}`); | ||||
| }); | ||||
| 
 | ||||
| app.get("/discover", async function (req, res) { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Ashley
						Ashley