Fixed several issues with video duration not being saved