Properly implement sleep for manifest
This commit is contained in:
		
							parent
							
								
									c222f91ef9
								
							
						
					
					
						commit
						5488fb457c
					
				| 
						 | 
				
			
			@ -180,7 +180,7 @@ async def _video_worker():
 | 
			
		|||
                                is_manifest = True
 | 
			
		||||
                                break
 | 
			
		||||
                    if is_manifest:
 | 
			
		||||
                        wait_time += video_json['duration']
 | 
			
		||||
                        await asyncio.sleep(video_json['duration'])
 | 
			
		||||
                try:
 | 
			
		||||
                    await client.send_message(config['config']['storage_chat_id'], f'Failed to download video {video_json["id"]}, please check logs', parse_mode=None)
 | 
			
		||||
                except BaseException:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue