Skip to content

Commit

Permalink
Don't crash on skipped videos in scene detector
Browse files Browse the repository at this point in the history
  • Loading branch information
stijn-uva committed Nov 18, 2024
1 parent 9197c99 commit 9453b76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion processors/visualisation/video_scene_identifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,9 @@ def process(self):
if video_data.get('success'):
files = video_data.get('files') if 'files' in video_data else [{"filename": video_data.get("filename"), "success":True}]
for file in files:
if not file.get("success"):
if not file.get("success") or file.get("filename") not in collected_scenes:
continue

# List types are not super fun for CSV
if 'post_ids' in video_data:
video_data['post_ids'] = ','.join([str(i) for i in video_data['post_ids']])
Expand Down

0 comments on commit 9453b76

Please sign in to comment.