#! /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
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 = []