mirror of
				https://codeberg.org/ashley/poke
				synced 2025-07-17 16:52:11 +00:00 
			
		
		
		
	remove channelfirstvideoobject :3
This commit is contained in:
		
							parent
							
								
									e5ec4e6679
								
							
						
					
					
						commit
						dae6282b85
					
				| @ -314,23 +314,10 @@ module.exports = function (app, config, renderTemplate) { | ||||
|         } | ||||
|       } | ||||
| 
 | ||||
|       let ChannelFirstVideoObject; | ||||
| 
 | ||||
|       const source = [tj, shorts, stream].find( | ||||
|         (i) => i && i.videos && i.videos.length > 0 | ||||
|       ); | ||||
|       if (source) { | ||||
|         ChannelFirstVideoObject = await fetch( | ||||
|           `${config.invapi}/videos/${source.videos[0].videoId}` | ||||
|         ) | ||||
|           .then((res) => res.text()) | ||||
|           .then((txt) => JSON.parse(txt)); | ||||
|       } else { | ||||
|         ChannelFirstVideoObject = { | ||||
|       let ChannelFirstVideoObject = { | ||||
|           subCountText: "0", | ||||
|           authorVerified: false, | ||||
|         }; | ||||
|       } | ||||
| 
 | ||||
|       renderTemplate(res, req, "channel.ejs", { | ||||
|         ID, | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 ashley
						ashley