Skip to content

A Webvtt file with identifiers and empty cue results in adding the identifier as subtitle.  #287

@chairajappa

Description

@chairajappa

pyCaption released a version (1.0.4) that allows empty cue without throwing any error.

I noticed a bug in a scenario, where a webVtt file with identifier and empty cue results in adding the identifier as a subtitle. The latest version 2.0.7 has the same issue.

e.g.
1
00:00:19.866 --> 00:00:29.800
subtitle 1

2
00:00:29.933 --> 00:00:37.500

3
00:00:37.600 --> 00:00:43.601
subtitle 2

Converted vtt file

00:19.866 --> 00:29.800
subtitle 1

00:37.600 --> 00:43.601
3
subtitle 2

00:43.666 --> 00:46.500
subtitle 3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions