look_for_tracks = true
elsif (look_for_tracks == true) then
look_for_tracks = false
- line =~ /[ \t]*1-([1234567890][1234567890]*)[^1234567890]/ \
- or raise "couldn't understand cdda2wav output!"
+ line =~ /[ \t]*1-([ 1234567890][1234567890]*)[^1234567890]/ \
+ or raise "couldn't understand cdda2wav output! (line:#{line})"
return $1.to_i
end
end
if (@t.empty?) then
raise "you must define some tracks"
end
- @t.each { |t| t.validate }
if (not $opts.partial) then
- (1..num_tracks).each do |t|
- if not @t[t].defined?
- raise "don't know what to do with track #{t}"
+ (1..num_tracks).each do |tnum|
+ if not @t.has_key?(tnum)
+ raise "don't know what to do with track #{tnum}"
end
end
end
puts manifest.inspect
num_tracks = get_number_of_tracks_on_cd()
puts "found #{num_tracks} tracks"
+manifest.validate(num_tracks)
manifest.rip(num_tracks)
puts "*** FINISHED ***"
exit 0