removing metadata checking from live, takes WAY too long
This commit is contained in:
		
							parent
							
								
									e66f2c5c2d
								
							
						
					
					
						commit
						7bdd866370
					
				| 
						 | 
					@ -67,11 +67,9 @@ exports.getChannel = async (req, res) => {
 | 
				
			||||||
            const index = allVideos.findIndex(o => o.id == v.id)
 | 
					            const index = allVideos.findIndex(o => o.id == v.id)
 | 
				
			||||||
            allVideos[index] = v
 | 
					            allVideos[index] = v
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
            const live = await metadata.getVideoMetadata(v.id)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            allVideos.push({
 | 
					            allVideos.push({
 | 
				
			||||||
                ...v, 
 | 
					                ...v, 
 | 
				
			||||||
                deleted: live.error ? true : false
 | 
					                deleted: undefined
 | 
				
			||||||
            })
 | 
					            })
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }))
 | 
					    }))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue