Skip to content

Commit

Permalink
this probably will fix that situation #47
Browse files Browse the repository at this point in the history
  • Loading branch information
bigcat88 committed Jan 27, 2022
1 parent 7608251 commit 9700d7f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Service/python/dc_videos.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ def do_hash_video(algo: str, hash_size: int, video_info: dict, file_info: dict,
"""Accepts path(bytes/str) or data for processing in memory."""
if video_info['duration'] < MinVideoDuration_ms:
return False
if video_info['duration'] > 24 * 60 * 60 * 1000: # let's only process videos with duration <= 24 hours.
return False
first_timestamp = get_first_timestamp(video_info, path, data)
if first_timestamp == -1:
return False
Expand Down

0 comments on commit 9700d7f

Please sign in to comment.