mirror of
				https://codeberg.org/ashley/poke
				synced 2025-07-17 16:52:11 +00:00 
			
		
		
		
	add Region settings :3
This commit is contained in:
		
							parent
							
								
									48076e81d6
								
							
						
					
					
						commit
						87bdb45f0e
					
				| @ -177,11 +177,14 @@ module.exports = function (app, config, renderTemplate) { | |||||||
|   }); |   }); | ||||||
| 
 | 
 | ||||||
|   app.get("/watch", async (req, res) => { |   app.get("/watch", async (req, res) => { | ||||||
|     const { dm, v, e, r, f, m, quality: q, a, universe } = req.query; |     const { dm, region, hl, v, e, r, f, m, quality: q, a, universe } = req.query; | ||||||
| 
 | 
 | ||||||
|     if (!v) { |     if (!v) { | ||||||
|       return res.redirect("/"); |       return res.redirect("/"); | ||||||
|     } |     } | ||||||
|  |       | ||||||
|  |    var contentlang = hl || "en-US"; | ||||||
|  |    var contentregion = region || "US"; | ||||||
| 
 | 
 | ||||||
|     const isVideoValid = await core.isvalidvideo(v); |     const isVideoValid = await core.isvalidvideo(v); | ||||||
|     if (!isVideoValid) { |     if (!isVideoValid) { | ||||||
| @ -193,7 +196,7 @@ module.exports = function (app, config, renderTemplate) { | |||||||
|     const secure = ["poketube.fun"].includes(req.hostname); |     const secure = ["poketube.fun"].includes(req.hostname); | ||||||
|     const verify = req.hostname === "pt.zzls.xyz"; |     const verify = req.hostname === "pt.zzls.xyz"; | ||||||
| 
 | 
 | ||||||
|     core.video(v).then((data) => { |     core.video(v, contentlang, contentregion).then((data) => { | ||||||
|       try { |       try { | ||||||
|         const k = data?.video; |         const k = data?.video; | ||||||
|         const json = data?.json; |         const json = data?.json; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Ashley
						Ashley