Skip to content

Error converting from sub to srt #19

@thorsteneckel

Description

@thorsteneckel

I have issues converting subtitles from the sub to the srt format.

subtitle_it -c srt my.sub and subtitle_it my.sub my.srt

throw the following error:

Working on file my.sub...
Converting `` to `UTF-8`
/Users/thorsteneckel/.rvm/gems/ruby-2.2.3/gems/subtitle_it-2.0.1/lib/subtitle_it/subtitle.rb:60:in `convert': wrong argument type nil (expected String) (TypeError)
  from /Users/thorsteneckel/.rvm/gems/ruby-2.2.3/gems/subtitle_it-2.0.1/lib/subtitle_it/subtitle.rb:60:in `encode_dump'
  from /Users/thorsteneckel/.rvm/gems/ruby-2.2.3/gems/subtitle_it-2.0.1/lib/subtitle_it/subtitle.rb:67:in `parse_dump'
  from /Users/thorsteneckel/.rvm/gems/ruby-2.2.3/gems/subtitle_it-2.0.1/lib/subtitle_it/subtitle.rb:40:in `initialize'
  from /Users/thorsteneckel/.rvm/gems/ruby-2.2.3/gems/subtitle_it-2.0.1/lib/subtitle_it/bin.rb:9:in `new'
  from /Users/thorsteneckel/.rvm/gems/ruby-2.2.3/gems/subtitle_it-2.0.1/lib/subtitle_it/bin.rb:9:in `run!'
  from /Users/thorsteneckel/.rvm/gems/ruby-2.2.3/gems/subtitle_it-2.0.1/lib/subtitle_it/bin.rb:102:in `run!'
  from /Users/thorsteneckel/.rvm/gems/ruby-2.2.3/gems/subtitle_it-2.0.1/bin/subtitle_it:68:in `<top (required)>'
  from /Users/thorsteneckel/.rvm/gems/ruby-2.2.3/bin/subtitle_it:23:in `load'
  from /Users/thorsteneckel/.rvm/gems/ruby-2.2.3/bin/subtitle_it:23:in `<main>'
  from /Users/thorsteneckel/.rvm/gems/ruby-2.2.3/bin/ruby_executable_hooks:15:in `eval'
  from /Users/thorsteneckel/.rvm/gems/ruby-2.2.3/bin/ruby_executable_hooks:15:in `<main>'

installed via gem, dependencies via brew.

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