mirror of
				https://codeberg.org/ashley/poke
				synced 2025-07-17 16:52:11 +00:00 
			
		
		
		
	fix 403 :3
This commit is contained in:
		
							parent
							
								
									fb223079e4
								
							
						
					
					
						commit
						1af4edaf18
					
				| @ -52,7 +52,7 @@ module.exports = function (app, config, renderTemplate) { | |||||||
|   }); |   }); | ||||||
|    |    | ||||||
|   app.get("/vi/:v/:t", async function (req, res) { |   app.get("/vi/:v/:t", async function (req, res) { | ||||||
|     var url = `https://yewtu.be/vi/${req.params.v}/${req.params.t}` |     var url = `https://invidious.snopyta.org/vi/${req.params.v}/${req.params.t}` | ||||||
|      |      | ||||||
|        let f = await modules.fetch(url + `?cachefixer=${btoa(Date.now())}`, { |        let f = await modules.fetch(url + `?cachefixer=${btoa(Date.now())}`, { | ||||||
|       method: req.method, |       method: req.method, | ||||||
| @ -63,7 +63,7 @@ module.exports = function (app, config, renderTemplate) { | |||||||
|   }); |   }); | ||||||
| 
 | 
 | ||||||
| app.get("/avatars/:v", async function (req, res) { | app.get("/avatars/:v", async function (req, res) { | ||||||
|     var url = `https://yewtu.be/ggpht/${req.params.v}`; |     var url = `https://invidious.snopyta.org/ggpht/${req.params.v}`; | ||||||
| 
 | 
 | ||||||
|     let f = await modules.fetch(url + `?cachefixer=${btoa(Date.now())}`, { |     let f = await modules.fetch(url + `?cachefixer=${btoa(Date.now())}`, { | ||||||
|       method: req.method, |       method: req.method, | ||||||
| @ -73,7 +73,7 @@ app.get("/avatars/:v", async function (req, res) { | |||||||
|   }); |   }); | ||||||
| 
 | 
 | ||||||
|   app.get("/ggpht/:v", async function (req, res) { |   app.get("/ggpht/:v", async function (req, res) { | ||||||
|     var url = `https://yewtu.be/ggpht/${req.params.v}`; |     var url = `https://invidious.snopyta.org/ggpht/${req.params.v}`; | ||||||
| 
 | 
 | ||||||
|     let f = await modules.fetch(url + `?cachefixer=${btoa(Date.now())}`, { |     let f = await modules.fetch(url + `?cachefixer=${btoa(Date.now())}`, { | ||||||
|       method: req.method, |       method: req.method, | ||||||
| @ -84,7 +84,7 @@ app.get("/avatars/:v", async function (req, res) { | |||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|   app.get("/avatars/ytc/:v", async function (req, res) { |   app.get("/avatars/ytc/:v", async function (req, res) { | ||||||
|     var url = `https://yewtu.be/ggpht/ytc/${req.params.v.replace("ytc", "")}`; |     var url = `https://invidious.snopyta.org/ggpht/ytc/${req.params.v.replace("ytc", "")}`; | ||||||
| 
 | 
 | ||||||
|     let f = await modules.fetch(url + `?cachefixer=${btoa(Date.now())}`, { |     let f = await modules.fetch(url + `?cachefixer=${btoa(Date.now())}`, { | ||||||
|       method: req.method, |       method: req.method, | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Ashley
						Ashley