mmcc-xx / WhosAtMyFeeder

316 stars 15 forks source link

View Video link does not work #53

Open empireshades opened 2 months ago

empireshades commented 2 months ago

On the main page of the webUI, I click on a thumbnail image and the snapshot window pops up, but when I try to click the View Video link in the bottom left hand corner, I just get a broken video image. This appears to be coming from an internal flask re-routing logic where whosatmyfeeder makes a request to frigate to fetch the video and then send it to the user directly here: https://github.com/mmcc-xx/WhosAtMyFeeder/blob/787c6656431cd14526dd2c239d93aeb220303f08/webui.py#L52-L69 When I examine the frigate api logs, it appears to have fetched correctly with a 200 so I'm not sure why this isn't working but it seems like it's breaking in line 62: return send_file(response.raw, mimetype=response.headers['Content-Type']). Any ideas? Thanks.