Don't save video position for videos under 5 minutes long
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user