mirror of
				https://codeberg.org/ashley/poke
				synced 2025-07-17 16:52:11 +00:00 
			
		
		
		
	yo
This commit is contained in:
		
							parent
							
								
									42ad36fc0b
								
							
						
					
					
						commit
						a3e960c1e7
					
				| @ -49,6 +49,11 @@ app.get("/watch", async function (req, res) { | |||||||
|   var v = req.query.v; |   var v = req.query.v; | ||||||
|   const getColors = require('get-image-colors') |   const getColors = require('get-image-colors') | ||||||
|   var e = req.query.e; |   var e = req.query.e; | ||||||
|  |   var r = req.query.r; | ||||||
|  |   const { toJson } = require("xml2json"); | ||||||
|  |   const video = await fetch( `https://tube.kuylar.dev/api/video?v=${v}`); | ||||||
|  |   const h = await video.text(); | ||||||
|  |   const k = JSON.parse(toJson(h)); | ||||||
|   if(!v) res.redirect("/") |   if(!v) res.redirect("/") | ||||||
|   var fetching = await fetcher(v) |   var fetching = await fetcher(v) | ||||||
|     const j = fetching.video.Player.Formats.Format, |     const j = fetching.video.Player.Formats.Format, | ||||||
| @ -69,6 +74,8 @@ if (j_.URL != undefined) | |||||||
|     video: json, |     video: json, | ||||||
|     date: moment(json.uploadDate).format("LL"), |     date: moment(json.uploadDate).format("LL"), | ||||||
|     e:e, |     e:e, | ||||||
|  |     k:k, | ||||||
|  |     r:r, | ||||||
|     lyrics: lyrics.replace(/\n/g, " <br> "), |     lyrics: lyrics.replace(/\n/g, " <br> "), | ||||||
|   }); |   }); | ||||||
| }); | }); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Ashley
						Ashley