SIGN IN SIGN UP

Use default duration if getDuration fails

Add a fallback for video duration by including this.getDuration(videoPath).catch(() => 60) in the Promise.all alongside fileTypeFromFile. This prevents Promise.all from rejecting when duration retrieval fails and supplies a sensible default (60s) for downstream processing (e.g., thumbnail generation).
手瓜一十雪 committed
0ae05ccb8d83641db18763a7fecceabcdee2e1e9
Parent: 973ccae