Don't save video position for videos under 5 minutes long

This commit is contained in:
2025-03-13 17:10:47 +01:00
parent 00e24879b7
commit 6018ff0edd

View File

@@ -26,6 +26,10 @@ export const get_video_positions = () => {
} }
export const save_video_position = (id: string, position: number, duration: number) => { export const save_video_position = (id: string, position: number, duration: number) => {
if (duration < 300) {
return // Don't bother saving videos less than 5 minutes long
}
const video_positions = get_video_positions() const video_positions = get_video_positions()
// Add our new entry // Add our new entry