Roger Binns
2005-01-12 05:55:12 UTC
Joe,
Is there any particular reason you screwed this file up?
Mac if the output file already exists.
The identification of wav is nice.
Roger
Is there any particular reason you screwed this file up?
Index: conversions.py
ret=os.spawnl( *( (os.P_WAIT, args[0])+args)) # looks like C code ...
- raise common.CommandExecutionFailed(ret, args)
+ raise common.CommandExecutionFailed(retcode, args)
That should be ret, like it was.ret=os.spawnl( *( (os.P_WAIT, args[0])+args)) # looks like C code ...
- raise common.CommandExecutionFailed(ret, args)
+ raise common.CommandExecutionFailed(retcode, args)
- try: os.remove(shortfilename(wavfile))
- except OSError: pass
run(ffmpeg, "-i", shortfilename(inputfilename), shortfilename(wavfile))
- try: os.remove(shortfilename(mp3file))
- except OSError: pass
Those lines need to be there because ffmpeg gets upset on Linux and probably- except OSError: pass
run(ffmpeg, "-i", shortfilename(inputfilename), shortfilename(wavfile))
- try: os.remove(shortfilename(mp3file))
- except OSError: pass
Mac if the output file already exists.
The identification of wav is nice.
Roger