Changeset 549
- Timestamp:
- 19-10-11 19:32:35 (19 months ago)
- File:
-
- 1 edited
-
trunk/morituri/rip/cd.py (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/morituri/rip/cd.py
r545 r549 7 7 8 8 # This file is part of morituri. 9 # 9 # 10 10 # morituri is free software: you can redistribute it and/or modify 11 11 # it under the terms of the GNU General Public License as published by 12 12 # the Free Software Foundation, either version 3 of the License, or 13 13 # (at your option) any later version. 14 # 14 # 15 15 # morituri is distributed in the hope that it will be useful, 16 16 # but WITHOUT ANY WARRANTY; without even the implied warranty of 17 17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 18 # GNU General Public License for more details. 19 # 19 # 20 20 # You should have received a copy of the GNU General Public License 21 21 # along with morituri. If not, see <http://www.gnu.org/licenses/>. … … 123 123 prog.loadDevice(device) 124 124 prog.unmountDevice(device) 125 125 126 126 # first, read the normal TOC, which is fast 127 127 ptoc = common.Persister(self.options.toc_pickle or None) … … 203 203 prog.result.tracks.append(trackResult) 204 204 205 path = prog.getPath(prog.outdir, self.options.track_template, 205 path = prog.getPath(prog.outdir, self.options.track_template, 206 206 mbdiscid, number) + '.' + profile.extension 207 207 trackResult.number = number 208 208 209 209 assert type(path) is unicode, "%r is not unicode" % path 210 210 trackResult.filename = path … … 225 225 number, len(itable.tracks), 226 226 os.path.basename(path).encode('utf-8')) 227 prog.ripTrack(runner, trackResult, 227 prog.ripTrack(runner, trackResult, 228 228 offset=int(self.options.offset), 229 229 device=self.parentCommand.options.device, … … 261 261 print 'Found Hidden Track One Audio from frame %d to %d' % ( 262 262 start, stop) 263 263 264 264 # rip it 265 265 ripIfNotRipped(0) … … 278 278 279 279 ### write disc files 280 discName = prog.getPath(prog.outdir, self.options.disc_template, 280 discName = prog.getPath(prog.outdir, self.options.disc_template, 281 281 mbdiscid, 0) 282 282 dirname = os.path.dirname(discName) … … 308 308 continue 309 309 310 path = prog.getPath(prog.outdir, self.options.track_template, 310 path = prog.getPath(prog.outdir, self.options.track_template, 311 311 mbdiscid, i + 1) + '.' + profile.extension 312 312 writeFile(handle, path, … … 332 332 responses[0].cddbDiscId 333 333 334 334 335 335 prog.verifyImage(runner, responses) 336 336 … … 353 353 action="store", dest="device", 354 354 help="CD-DA device") 355 355 356 356 def handleOptions(self, options): 357 357 if not options.device: … … 360 360 self.error('No CD-DA drives found!') 361 361 return 3 362 362 363 363 # pick the first 364 364 self.options.device = drives[0]
Note: See TracChangeset
for help on using the changeset viewer.
