diff options
| author | mikeos <mike.osipov@gmail.com> | 2013-07-24 00:10:16 +0400 |
|---|---|---|
| committer | mikeos <mike.osipov@gmail.com> | 2013-07-24 00:10:16 +0400 |
| commit | ad7ed713f4a968dbdb7ddc149e56677c6cc5fd2a (patch) | |
| tree | 9f39e2d44534057c2bdb880a4b3734eda57da21a /config.py | |
| parent | 3c0ba7eced71fcadf697d104f86fc1b47b82b1cf (diff) | |
output filename format
Diffstat (limited to 'config.py')
| -rw-r--r-- | config.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) |
