Skip to content

Conversation

@romanroibu
Copy link
Contributor

Fixes #1428

@romanroibu romanroibu requested a review from papr August 14, 2019 10:55
all_file_paths = glob.iglob(os.path.join(rec_dir, "*"))

# TODO: Should this validation be "are there any video files" or are there specific video files?
if not any(is_video_file(path) for path in all_file_paths):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the current behavior requires at least one video but I would like to change that to not require anything but an info.csv file with start time and duration keys. See Patrick's implementation for generating wordless lookup tables.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so what is the correct check here? only the presence of "Start Time" and "Duration Time" in info.csv?

I'm looking at check_for_worldless_recording in update_methods.py but there's no reference to either key. also it seems that this method is generating a world.fake file if a real video file is missing. is_video_file(path) will return True for any video file, including world.fake, so the implementation seems to still be valid.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's talk this through on Thursday.

@papr papr merged commit 68d3f95 into pupil-labs:master Aug 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Player: Improve "Invalid Recording" error message

2 participants