#! /usr/bin/env python2.4
-'''
+"""
=head1 NAME
B<fa-flacd> - archive CDs to single FLAC files
=cut
-''' #' # python-mode is sucks
+"""
import os
import re
argv.extend(['-T', i])
argv.append(infile)
# flac 1.1.3 PICTURE support
- #argv.extend(['--picture', '3|image/jpeg|||cover.front'])
+ argv.extend(['--picture', '3|image/jpeg|||cover.front'])
spew('Running flac\n')
status = os.spawnvp(os.P_WAIT, argv[0], argv)
c(os.rename, outfile + '.flac-tmp', outfile + '.flac')
def flac(dir, artist, album, discnum, tracknum, track_tags, disc_artist, tags):
- '''Encode a single wav file to a single flac file, whether the wav and
- flac files represent individual tracks or whole discs.'''
+ """Encode a single wav file to a single flac file, whether the wav and
+ flac files represent individual tracks or whole discs."""
(artist, album) = [x.replace('/', '_') for x in (artist, album)]
# The master process
def get_tags(fn):
- '''Return the ARTIST, ALBUM, and DATE followed by a list of all the
- lines in the file FN.'''
+ """Return the ARTIST, ALBUM, and DATE followed by a list of all the
+ lines in the file FN."""
artist = album = discnum = None
tags = []