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
							
								
									88f5ccbc21
								
							
						
					
					
						commit
						e702e588fc
					
				
							
								
								
									
										13
									
								
								server.js
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								server.js
									
									
									
									
									
								
							| @ -45,18 +45,15 @@ const fetcher = require("./src/fetcher.js"); | ||||
| app.get("/watch", async function (req, res) { | ||||
|   var v = req.query.v; | ||||
|   var e = req.query.e; | ||||
|    var fetching = await fetcher(v) | ||||
|     const url = fetching.video.Player.Formats.Format[1].URL | ||||
|     /* | ||||
|   if(!v) res.redirect("/") | ||||
|   var fetching = await fetcher(v) | ||||
| const j = fetching.video.Player.Formats.Format, | ||||
|   j_ = typeof j === 'object' && j !== null | ||||
|     ? j | ||||
|     : j[j.length - 1]; | ||||
|   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 = await lyricsFinder(json.Title); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Ashley
						Ashley