Ignore:
Timestamp:
02-01-11 18:14:26 (2 years ago)
Author:
thomas
Message:
  • morituri/common/program.py:
  • morituri/image/table.py:
  • morituri/rip/cd.py: Get CDDB disc id. Use it to print info when not found on MusicBrainz?.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/morituri/rip/cd.py

    r419 r420  
    138138        prog.metadata = prog.getMusicBrainz(ittoc, mbdiscid) 
    139139 
    140         # stop if the cd is unknown and we don't want to continue 
    141         if not prog.metadata and not self.options.unknown: 
    142             prog.ejectDevice(device) 
    143             return -1 
     140        if not prog.metadata: 
     141            # fall back to FreeDB for lookup 
     142            cddbid = ittoc.getCDDBValues() 
     143            cddbmd = prog.getCDDB(cddbid) 
     144            if cddbmd: 
     145                print 'FreeDB identifies disc as %s' % cddbmd 
     146 
     147            if not self.options.unknown: 
     148                prog.ejectDevice(device) 
     149                return -1 
    144150 
    145151        # now, read the complete index table, which is slower 
Note: See TracChangeset for help on using the changeset viewer.