Auto update total duration, fixes #915 (lib)