gonzoua / AudioBookBinder

GUI and command-line utility for converting audiobooks to m4b format
http://bluezbox.com/abb.html
229 stars 48 forks source link

abbinder corrupts first file when I forget to provide outfile name #13

Closed theconsultant closed 11 years ago

theconsultant commented 12 years ago

Sometimes I forget to give an outfile and instead of throwing an error saying "outfile not given" abbinder uses the firs file in the list as the outfile, and corrupts it.

For example, I was combining a series of mp3 files of an audiobook and I forgot the outfile, so the first file (01 Equal Rites - Part 1.m4a, in this case) gets the results appended to it.

abbinder -a Terry\ Pratchett -t 003\ Equal\ Rites -C 00EqualRites.jpg *.m4a

What I should have written was:

abbinder -a Terry\ Pratchett -t 003\ Equal\ Rites -C 00EqualRites.jpg Equal\ Rites.m4b *.m4a

Two options for a fix:

1) require a '-o' to give output filename 2) parse the inputs and figure out if the outfile is missing and throw an error.

While you're at it.. could you add a version number to abbinder so we know which one we are working with?

Love the app, keep up the good work!

Cheers,

Dave