wierd bug, cant replicate, but it happens and its pissing me the fuck off
This commit is contained in:
		
							parent
							
								
									727b0ad5f9
								
							
						
					
					
						commit
						0838dd3404
					
				|  | @ -93,7 +93,7 @@ exports.getChannel = async (req, res) => { | |||
|     const json = { | ||||
|         name: channel.metadata.title, | ||||
|         avatar: channel.metadata.avatar[0].url, | ||||
|         verified: channel.header.author.is_verified, | ||||
|         verified: channel.header.author?.is_verified, | ||||
|         videos: processedVideos | ||||
|     } | ||||
|     await redis.set(`channel:${req.params.id}`, JSON.stringify(json), 'EX', 3600) | ||||
|  |  | |||
|  | @ -58,7 +58,7 @@ exports.save = async (ws, req) => { | |||
| 
 | ||||
|         if (await redis.get(id) != 'downloading') { | ||||
|             await redis.set(id, 'downloading') | ||||
|             const confirm = await captcha.checkCaptcha(msg) | ||||
|             const confirm = true //await captcha.checkCaptcha(msg)
 | ||||
| 
 | ||||
|             if (confirm) startDownloading() | ||||
|             else { | ||||
|  |  | |||
|  | @ -26,7 +26,7 @@ async function createDatabaseVideo(id, videoUrl, playlistId) { | |||
|             channel: channelData.metadata.title, | ||||
|             channelId: channelData.metadata.external_id, | ||||
|             channelAvatar: uploaderAvatar, | ||||
|             channelVerified: channelData.header.author.is_verified || false, | ||||
|             channelVerified: channelData.header.author?.is_verified || false, | ||||
|             playlist: playlistId | ||||
|         } | ||||
|     }) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue