GithubHelp home page GithubHelp logo

Reading the Metadata about webvtt-py HOT 6 CLOSED

glut23 avatar glut23 commented on August 29, 2024
Reading the Metadata

from webvtt-py.

Comments (6)

glut23 avatar glut23 commented on August 29, 2024

Hi @Vyrill, I will have a look at this, thank you for reporting it.

from webvtt-py.

glut23 avatar glut23 commented on August 29, 2024

Hi @Vyrill I just released 0.3.1 that will allow you to parse caption files containing metadata headers. Please let me know if you have any further issues. Thanks.

from webvtt-py.

 avatar commented on August 29, 2024

Hi ,
I upgraded to 0.3.1 , but I'm still getting the error , attached is the screen shot of the vtt file the error for the following script :

webvtt = WebVTT().read('filename.en.vtt') for caption in webvtt: if "word" in caption.text: print(caption.start)

Thanks !
vtt

traceback

from webvtt-py.

glut23 avatar glut23 commented on August 29, 2024

Hi @Vyrill looking at the file you are trying to parse it looks like the issue is with the Style metadata header as it contains multiple lines (not allowed based on the specifications). I implemented this based on the following specs from 2015:
https://www.w3.org/TR/2015/WD-webvtt1-20151208/#webvtt-metadata-header

Metadata headers are not part of the latest specs for WebVTT format. Anyway I will make the changes to be able to read captions files with this kind of headers.

from webvtt-py.

glut23 avatar glut23 commented on August 29, 2024

Hi @Vyrill I released 0.3.2 that will fix the issue with metadata headers in more than one line. Thanks.

from webvtt-py.

 avatar commented on August 29, 2024

Hi @glut23 , Thank you so much ! This now works just perfect !

from webvtt-py.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.