Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CD-TEXT issue #49

Closed
thomas-mc-work opened this issue Oct 18, 2016 · 4 comments · Fixed by #52
Closed

CD-TEXT issue #49

thomas-mc-work opened this issue Oct 18, 2016 · 4 comments · Fixed by #52
Labels
Bug Generic bug: can be used together with more specific labels
Milestone

Comments

@thomas-mc-work
Copy link
Contributor

thomas-mc-work commented Oct 18, 2016

I tried to rip a CD that oviously contains CD-TEXT. I got this error message:

...
Scanning indexes of session 1... (2 of 2) ...  98 %
Scanning indexes of session 1... (2 of 2) ...  99 %
Scanning indexes of session 1... (2 of 2) ... 100 %

Scanning indexes of session 1... (2 of 2) ... 100 %

Traceback (most recent call last):
  File "/usr/local/bin/rip", line 37, in <module>
    sys.exit(main.main(sys.argv[1:]))
  File "/usr/local/lib/python2.7/site-packages/morituri/rip/main.py", line 40, in main
    ret = c.parse(argv)
  File "/usr/local/lib/python2.7/site-packages/morituri/rip/main.py", line 118, in parse
    logcommand.LogCommand.parse(self, argv)
  File "/usr/local/lib/python2.7/site-packages/morituri/common/logcommand.py", line 62, in parse
    command.Command.parse(self, argv)
  File "/usr/local/lib/python2.7/site-packages/morituri/extern/command/command.py", line 401, in parse
    return self.subCommands[command].parse(args[1:])
  File "/usr/local/lib/python2.7/site-packages/morituri/common/logcommand.py", line 62, in parse
    command.Command.parse(self, argv)
  File "/usr/local/lib/python2.7/site-packages/morituri/extern/command/command.py", line 401, in parse
    return self.subCommands[command].parse(args[1:])
  File "/usr/local/lib/python2.7/site-packages/morituri/common/logcommand.py", line 62, in parse
    command.Command.parse(self, argv)
  File "/usr/local/lib/python2.7/site-packages/morituri/extern/command/command.py", line 363, in parse
    ret = self.do(args)
  File "/usr/local/lib/python2.7/site-packages/morituri/rip/cd.py", line 128, in do
    self.ittoc.getMusicBrainzDiscId(), self.device, offset)
  File "/usr/local/lib/python2.7/site-packages/morituri/common/program.py", line 177, in getTable
    runner.run(t)
  File "/usr/local/lib/python2.7/site-packages/morituri/extern/task/task.py", line 490, in run
    raise TaskException(task.exception, message=msg)
morituri.extern.task.task.TaskException: (ProgramError('Reading of CD-TEXT data failed.',), None)

Maybe it's possible to simply omit tracks in this format before trying to read?

It is this CD (maybe this helps): https://musicbrainz.org/release/75fab53f-68a1-4f37-ab5d-d71a316e84ad

@JoeLametta JoeLametta added the Bug Generic bug: can be used together with more specific labels label Oct 18, 2016
@JoeLametta
Copy link
Collaborator

JoeLametta commented Oct 18, 2016

This is a cdrdao issue but whipper shouldn't stop ripping. I haven't go a lot of free time these days but I'll try to debug it as soon as possible. Maybe I'll ask you to try ripping that same CD using cdrdao...

Anyway here's a related issue ticket:

thomasvs/morituri#143

@JoeLametta
Copy link
Collaborator

JoeLametta commented Oct 18, 2016

It seems that whipper doesn't check the message log level before firing ProgramError...

Straight from cdrdao source code:

if (opts->withCddb) {
    if (readCddb(opts, toc) == 0)
        log_message(2, "CD-TEXT data was added to toc-file.");
    else
        log_message(2, "Reading of CD-TEXT data failed - "
                    "continuing without CD-TEXT data.");
}
// Level definitions:
//   -1 : warning
//   -2 : error
//   -3 : internal error
//   -4 to -9 : fatal error
//   -10 and less : fatal error, call will exit the calling thread.
//
// Levels >= 0 are controlled by the verbosity set below.

@JoeLametta
Copy link
Collaborator

@thomas-mc-work Could you try updating whipper and ripping that same CD again? (now, thanks to RecursiveForest pull request, it should work as expected).
Let me know how it goes.

Thanks.

@thomas-mc-work
Copy link
Contributor Author

Perfect, it's working now 👍
Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Generic bug: can be used together with more specific labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants