Git Product home page Git Product logo

ass-parser's People

Contributors

eush77 avatar saschanaz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ass-parser's Issues

THANK YOU VERY MUCH!

I was using Electron.js trying to build a desktop client(Mac+Windows) that parse ASS subtitlte file.
(the propose of the project is use Google Translate process SRT and ASS file)

your code work and very helpful,THANK YOU VERY MUCH!
I wonder why such useful modules have so little start/fork.

I am building this side project for fun.
Thanks again!

Star+Fork+Follow!

Split is not a function

With latest Node.JS (7.10.0) throws the following error:

TypeError: text.slice(...).split is not a function
at e:\BTSync\Projects\Web\UnlimitedQuotebook\node_modules\ass-parser\index.js:54:40
at e:\BTSync\Projects\Web\UnlimitedQuotebook\node_modules\fzip\src\fzip.js:49:21
at Array.map (native)
at e:\BTSync\Projects\Web\UnlimitedQuotebook\node_modules\fzip\src\fzip.js:48:53
at parseAss (e:\BTSync\Projects\Web\UnlimitedQuotebook\node_modules\ass-parser\index.js:49:10)
at fs.readFile (e:\BTSync\Projects\Web\UnlimitedQuotebook\index.js:11:28)
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:439:3)

At the following line in index.js:
var lines = text.slice(begin, end).split('\n');

Fix
Managed to fix the issue by changing line to:
var lines = text.slice(begin, end).toString().split('\n');

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.