Skip to content

pysrt.open() returns empty list #86

Description

@HappyNinja2

I downloaded a sample subtitle from OpenSutitle but when I run the following code, it just returns an empty list:

    result = chardet.detect(rawdata)
    charenc = result['encoding']
     subs = pysrt.open(file_path, encoding=charenc)

The code works for some subtitles but for some it just returns an empty list.

I have attached the subtitle with the problem (renamed the extension to *.txt, so it could be uploaded to github)

1951678632.txt

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions