mirror of
				https://codeberg.org/ashley/poke
				synced 2025-07-17 16:52:11 +00:00 
			
		
		
		
	fix encryption owo
This commit is contained in:
		
							parent
							
								
									c01a198536
								
							
						
					
					
						commit
						3ecbdc752c
					
				| @ -119,24 +119,32 @@ module.exports = function (app, config, renderTemplate) { | ||||
|     let url; | ||||
|     if (j_.URL != undefined) url = j_.URL; | ||||
| 
 | ||||
|     // json response
 | ||||
|     const re = { | ||||
|       main: { | ||||
|         video_id: sha384(json.id), | ||||
|         channel: sha384(json.Channel.Name), | ||||
|         title: sha384(json.Title), | ||||
|         date: sha384(btoa(Date.now()).toString()), | ||||
|       }, | ||||
|       info: { | ||||
|         desc: sha384(json.Description), | ||||
|       }, | ||||
|       video: { | ||||
|         title: sha384(json.Title), | ||||
|         url: sha384(url), | ||||
|       }, | ||||
|     }; | ||||
|     if (json) { | ||||
|       if (json.Title) { | ||||
|         if (json.Channel.Name) { | ||||
|           if (json.Description) { | ||||
|             // json response
 | ||||
|             const re = { | ||||
|               main: { | ||||
|                 video_id: sha384(json.id), | ||||
|                 channel: sha384(json.Channel.Name), | ||||
|                 title: sha384(json.Title), | ||||
|                 date: sha384(btoa(Date.now()).toString()), | ||||
|               }, | ||||
|               info: { | ||||
|                 desc: sha384(json.Description), | ||||
|               }, | ||||
|               video: { | ||||
|                 title: sha384(json.Title), | ||||
|                 url: sha384(url), | ||||
|               }, | ||||
|             }; | ||||
| 
 | ||||
|     res.json(re); | ||||
|             res.json(re); | ||||
|           } | ||||
|         } | ||||
|       } | ||||
|     } | ||||
|   }); | ||||
| 
 | ||||
|   app.get("/watch", async function (req, res) { | ||||
| @ -333,7 +341,6 @@ module.exports = function (app, config, renderTemplate) { | ||||
|     } | ||||
|   }); | ||||
| 
 | ||||
| 
 | ||||
|   app.get("/music", async function (req, res) { | ||||
|     /* | ||||
|      * QUERYS | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Ashley
						Ashley