* morituri/rip/cd.py:

Create variables for default templates.
This commit is contained in:
Thomas Vander Stichele
2011-05-30 18:04:24 +00:00
parent 02f5012453
commit 263260f820
2 changed files with 13 additions and 6 deletions

View File

@@ -1,3 +1,8 @@
2011-05-30 Thomas Vander Stichele <thomas at apestaart dot org>
* morituri/rip/cd.py:
Create variables for default templates.
2011-05-30 Thomas Vander Stichele <thomas at apestaart dot org>
* morituri/test/test_common_program.py:

View File

@@ -31,6 +31,8 @@ from morituri.common import drive, program
from morituri.result import result
from morituri.program import cdrdao
DEFAULT_TRACK_TEMPLATE = u'%A - %d/%t. %a - %n'
DEFAULT_DISC_TEMPLATE = u'%A - %d/%A - %d'
class Rip(logcommand.LogCommand):
summary = "rip CD"
@@ -66,16 +68,16 @@ Discs are named according to the disc template:
help="pickle to use for reading and writing the TOC",
default=default)
# FIXME: get from config
default = '%A - %d/%t. %a - %n'
self.parser.add_option('', '--track-template',
action="store", dest="track_template",
help="template for track file naming (default %s)" % default,
default=default)
default = '%A - %d/%A - %d'
help="template for track file naming (default %s)" %
DEFAULT_TRACK_TEMPLATE,
default=DEFAULT_DISC_TEMPLATE)
self.parser.add_option('', '--disc-template',
action="store", dest="disc_template",
help="template for disc file naming (default %s)" % default,
default=default)
help="template for disc file naming (default %s)" %
DEFAULT_DISC_TEMPLATE,
default=DEFAULT_DISC_TEMPLATE)
default = 'flac'
# here to avoid import gst eating our options