mirror of
				https://codeberg.org/ashley/poke
				synced 2025-07-17 16:52:11 +00:00 
			
		
		
		
	re-add videos :3
This commit is contained in:
		
							parent
							
								
									ab3b30d618
								
							
						
					
					
						commit
						8f28bc4842
					
				| @ -181,6 +181,17 @@ app.use("/sb/i/:v/:imagePath/:img", async function (req, res) { | ||||
|     } catch {} | ||||
| }); | ||||
| 
 | ||||
|   app.get("/feeds/videos.xml", async (req, res) => { | ||||
|     const id = req.query.channel_id; | ||||
| 
 | ||||
|     let url = `https://youtube.com/feeds/videos.xml?channel_id=${id}`; | ||||
| 
 | ||||
|     let f = await modules.fetch(url, { | ||||
|       method: req.method, | ||||
|     }); | ||||
| 
 | ||||
|     f.body.pipe(res); | ||||
|   }); | ||||
| 
 | ||||
|   app.get("/api/redirect", async (req, res) => { | ||||
|     const red_url = atob(req.query.u); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 ashley
						ashley