Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always show recording link even if recordings are currently disabled #2787

Conversation

NickM-27
Copy link
Collaborator

@NickM-27 NickM-27 commented Feb 10, 2022

Fix for #2610

I keep recordings on for both of my cameras, but I have one that I only record when my dog is left at home. It is helpful to always be able to view those recordings even if they are currently disabled. I'm thinking perhaps it may be possible to check if that camera currently has any recording clips but that might also be an expensive call.

@blakeblackshear
Copy link
Owner

Can you test this in the event that the user never enabled record there are no recordings? Historically that caused the recordings page to go into a crazy crash loop.

@NickM-27
Copy link
Collaborator Author

Can you test this in the event that the user never enabled record there are no recordings? Historically that caused the recordings page to go into a crazy crash loop.

Sure I'll test that! I did test with events but no recording and it worked, just so you know.

@blakeblackshear
Copy link
Owner

Events are just another way to save recordings. I'm talking about situations where there are no recordings at all for a camera.

@NickM-27
Copy link
Collaborator Author

@blakeblackshear Right, makes sense, my bad.

I tested this situation by doing a clean run with an IP camera that has recordings disabled and opening the recordings link. This is what it showed:

Screen Shot 2022-02-11 at 3 39 46 PM

@blakeblackshear
Copy link
Owner

Looks like you broke a unit test. This is such a small change, I will include it in 0.10.0.

@NickM-27
Copy link
Collaborator Author

@blakeblackshear Thanks! Test should be passing now

@blakeblackshear blakeblackshear merged commit 889835a into blakeblackshear:release-0.10.0 Feb 12, 2022
@NickM-27 NickM-27 deleted the always-show-recording-link branch February 12, 2022 19:52
blakeblackshear pushed a commit that referenced this pull request Feb 19, 2022
…2787)

* Always show recording link even if recordings are currently disabled

* Fix test to consider all cameras to have recording link
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants