From ad7ed713f4a968dbdb7ddc149e56677c6cc5fd2a Mon Sep 17 00:00:00 2001 From: mikeos Date: Wed, 24 Jul 2013 00:10:16 +0400 Subject: output filename format --- config.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'config.py') diff --git a/config.py b/config.py index 338b45a..6345c7d 100644 --- a/config.py +++ b/config.py @@ -38,6 +38,8 @@ class CfgParser: def __getattr__(self, attr): return getattr(self.parser, attr) +DEFAULT_FILENAME_FORMAT = "{tracknumber:02d}.{title}" + cfg = CfgParser() cfg.read(os.path.expanduser("~/.cutter.cfg")) @@ -47,3 +49,5 @@ COMPRESSION = cfg.getint("encoding", "compression") SAMPLE_RATE = cfg.getint("output", "sample_rate") CHANNELS = cfg.getint("output", "channels") BITS_PER_SAMPLE = cfg.getint("output", "bits_per_sample") + +FILENAME_FORMAT = cfg.get("encoding", "format", DEFAULT_FILENAME_FORMAT) -- cgit v1.2.3-70-g09d2