#! /usr/bin/env python2.4
-'''
+"""
=head1 NAME
B<flac2mp3> - transcode FLAC file to MP3 files
=cut
-''' #' # python-mode is sucks
+"""
import re, sys, traceback
from optparse import OptionParser
self._global = {}
self._tags = {}
def __len__(self):
- return len(self._tags)
+ # All files have at least one track.
+ return max(1, len(self._tags))
def get(self, key, track=None):
key = key.upper()
try:
tags[key].append(value)
def get_tags(fn):
- '''Return the ARTIST, ALBUM, and DATE tags followed by the TITLE tags
- in the file FN.'''
+ """Return the ARTIST, ALBUM, and DATE tags followed by the TITLE tags
+ in the file FN."""
tags = Tags()