mirror of
				https://github.com/blakeblackshear/frigate.git
				synced 2025-10-27 10:52:11 +01:00 
			
		
		
		
	fetch recordings until end of hour, not top of next hour
This commit is contained in:
		
							parent
							
								
									eb3f50c9f0
								
							
						
					
					
						commit
						098e293c82
					
				@ -567,7 +567,7 @@ def recordings(camera_name):
 | 
				
			|||||||
@bp.route("/vod/<year_month>/<day>/<hour>/<camera>")
 | 
					@bp.route("/vod/<year_month>/<day>/<hour>/<camera>")
 | 
				
			||||||
def vod(year_month, day, hour, camera):
 | 
					def vod(year_month, day, hour, camera):
 | 
				
			||||||
    start_date = datetime.strptime(f"{year_month}-{day} {hour}", "%Y-%m-%d %H")
 | 
					    start_date = datetime.strptime(f"{year_month}-{day} {hour}", "%Y-%m-%d %H")
 | 
				
			||||||
    end_date = start_date + timedelta(hours=1)
 | 
					    end_date = start_date + timedelta(hours=1) - timedelta(milliseconds=1)
 | 
				
			||||||
    start_ts = start_date.timestamp()
 | 
					    start_ts = start_date.timestamp()
 | 
				
			||||||
    end_ts = end_date.timestamp()
 | 
					    end_ts = end_date.timestamp()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user