Changeset 549


Ignore:
Timestamp:
19-10-11 19:32:35 (19 months ago)
Author:
thomas
Message:

whitespace removal

File:
1 edited

Legend:

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

    r545 r549  
    77 
    88# This file is part of morituri. 
    9 #  
     9# 
    1010# morituri is free software: you can redistribute it and/or modify 
    1111# it under the terms of the GNU General Public License as published by 
    1212# the Free Software Foundation, either version 3 of the License, or 
    1313# (at your option) any later version. 
    14 #  
     14# 
    1515# morituri is distributed in the hope that it will be useful, 
    1616# but WITHOUT ANY WARRANTY; without even the implied warranty of 
    1717# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    1818# GNU General Public License for more details. 
    19 #  
     19# 
    2020# You should have received a copy of the GNU General Public License 
    2121# along with morituri.  If not, see <http://www.gnu.org/licenses/>. 
     
    123123        prog.loadDevice(device) 
    124124        prog.unmountDevice(device) 
    125          
     125 
    126126        # first, read the normal TOC, which is fast 
    127127        ptoc = common.Persister(self.options.toc_pickle or None) 
     
    203203                prog.result.tracks.append(trackResult) 
    204204 
    205             path = prog.getPath(prog.outdir, self.options.track_template,  
     205            path = prog.getPath(prog.outdir, self.options.track_template, 
    206206                mbdiscid, number) + '.' + profile.extension 
    207207            trackResult.number = number 
    208              
     208 
    209209            assert type(path) is unicode, "%r is not unicode" % path 
    210210            trackResult.filename = path 
     
    225225                    number, len(itable.tracks), 
    226226                    os.path.basename(path).encode('utf-8')) 
    227                 prog.ripTrack(runner, trackResult,  
     227                prog.ripTrack(runner, trackResult, 
    228228                    offset=int(self.options.offset), 
    229229                    device=self.parentCommand.options.device, 
     
    261261            print 'Found Hidden Track One Audio from frame %d to %d' % ( 
    262262                start, stop) 
    263                  
     263 
    264264            # rip it 
    265265            ripIfNotRipped(0) 
     
    278278 
    279279        ### write disc files 
    280         discName = prog.getPath(prog.outdir, self.options.disc_template,  
     280        discName = prog.getPath(prog.outdir, self.options.disc_template, 
    281281            mbdiscid, 0) 
    282282        dirname = os.path.dirname(discName) 
     
    308308                continue 
    309309 
    310             path = prog.getPath(prog.outdir, self.options.track_template,  
     310            path = prog.getPath(prog.outdir, self.options.track_template, 
    311311                mbdiscid, i + 1) + '.' + profile.extension 
    312312            writeFile(handle, path, 
     
    332332                    responses[0].cddbDiscId 
    333333 
    334             
     334 
    335335        prog.verifyImage(runner, responses) 
    336336 
     
    353353            action="store", dest="device", 
    354354            help="CD-DA device") 
    355   
     355 
    356356    def handleOptions(self, options): 
    357357        if not options.device: 
     
    360360                self.error('No CD-DA drives found!') 
    361361                return 3 
    362          
     362 
    363363            # pick the first 
    364364            self.options.device = drives[0] 
Note: See TracChangeset for help on using the changeset viewer.