diff options
| author | mikeos <mike.osipov@gmail.com> | 2013-09-30 02:21:16 +0400 |
|---|---|---|
| committer | mikeos <mike.osipov@gmail.com> | 2013-09-30 02:21:16 +0400 |
| commit | 10a50690b33ca7fefc7768d156eb2b75544082ea (patch) | |
| tree | ddf4e7fc2e1bd93b288660522069d332fdc2faa8 /config.py | |
| parent | 0dae4f52d78d840451a8a841b30190e70aab5d7b (diff) | |
add ogg support
Diffstat (limited to 'config.py')
| -rw-r--r-- | config.py | 23 |
1 files changed, 13 insertions, 10 deletions
@@ -43,15 +43,18 @@ DEFAULT_FILENAME_FORMAT = "{tracknumber:02d}.{title}" cfg = CfgParser() cfg.read(os.path.expanduser("~/.cutter.cfg")) -DIR = cfg.get("encoding", "dir", ".") -TYPE = cfg.get("encoding", "type") -USE_TEMPDIR = cfg.getbool("encoding", "use_tempdir") -COMPRESSION = cfg.getint("encoding", "compression") -BITRATE = cfg.getint("encoding", "bitrate") +DIR = cfg.get("encoding", "dir", ".") +TYPE = cfg.get("encoding", "type") +USE_TEMPDIR = cfg.getbool("encoding", "use_tempdir") +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") +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("filename", "format", DEFAULT_FILENAME_FORMAT) -CONVERT_CHARS = cfg.getbool("filename", "convert_chars", False) +FILENAME_FORMAT = cfg.get("filename", "format", DEFAULT_FILENAME_FORMAT) +CONVERT_CHARS = cfg.getbool("filename", "convert_chars", False) + +FLAC_COMPRESSION = cfg.getint("flac", "compression") +OGG_COMPRESSION = cfg.getint("ogg", "compression") +MP3_BITRATE = cfg.getint("mp3", "bitrate") |
