I think this patch would be even better if you reused the code to check if a duplicate_exists() from line 93. So that if the user records multiple videos their previous one won't be overwritten.