Saving the repository after each video