* morituri/rip/main.py:

* morituri/common/musicbrainzngs.py:
	* morituri/common/program.py:
	* morituri/rip/cd.py:
	  Add -R option to rip to record API results for debugging.
This commit is contained in:
Thomas Vander Stichele
2011-10-28 17:49:36 +00:00
parent 919076e720
commit c2838ad05c
5 changed files with 37 additions and 6 deletions

View File

@@ -110,7 +110,7 @@ filling in the variables and expanding the file extension. Variables are:
"should be the same.")
def do(self, args):
prog = program.Program()
prog = program.Program(record=self.getRootCommand().record)
runner = task.SyncRunner()
def function(r, t):

View File

@@ -69,6 +69,9 @@ You can get help on subcommands by using the -h option to the subcommand.
log.debug("morituri", "This is morituri version %s (%s)",
configure.version, configure.revision)
self.parser.add_option('-R', '--record',
action="store_true", dest="record",
help="record API requests for playback")
self.parser.add_option('-v', '--version',
action="store_true", dest="version",
help="show version information")
@@ -79,6 +82,8 @@ You can get help on subcommands by using the -h option to the subcommand.
print "rip %s" % configure.version
sys.exit(0)
self.record = options.record
def parse(self, argv):
log.debug("morituri", "rip %s" % " ".join(argv))
logcommand.LogCommand.parse(self, argv)