lib/drive_info.rb in sensible-cinema-0.16.3 vs lib/drive_info.rb in sensible-cinema-0.16.5

- old
+ new

@@ -7,10 +7,10 @@ digest = Digest::MD5.new() files = Dir[dir + "VIDEO_TS/*.IFO"] files.sort.each{|f| digest << File.binread(f) } - raise 'bad drive' unless files.length > 0 + raise 'drive might not yet have disc in it? ' + dir unless files.length > 0 digest.hexdigest end def self.get_dvd_drives_as_win32ole disks = WMI::Win32_LogicalDisk.find(:all)