]> diplodocus.org Git - flac-archive/commit
Move Tags class into new flac_archive package, fix a bug in it, and
authorepg <>
Sat, 21 Apr 2007 19:26:22 +0000 (19:26 +0000)
committerepg <>
Sat, 21 Apr 2007 19:26:22 +0000 (19:26 +0000)
commitcbfd1b29112cd8ab5540c1019f2a400f4bf20410
treedf94ee9ad7b80f95c0fc20678ebf4138d26bb69f
parentf01bc9f6b79b2123a158f1462ec00fc63dedc889
Move Tags class into new flac_archive package, fix a bug in it, and
test it.  These stupid scripts will finally start sharing code and
getting some formal testing.

flac_archive/tags.py:
    (Tags): Move here from flac2mp3, and rename ._tags to ._tracks .
    The tag-loading loop from flac2mp3 get_tags becomes the new .load
    method.

    (Tags.get): Return all matching tag data instead of either global
    or per-track (oops).

    (Tags.gets): Adapt to that change, and allow other separators than
    just '\n', which becomes a default.

    (Tags.all, Tags.track): New methods for getting a tag block for
    all tags (whole disc) or just a track, respectively.  To be used
    by fa-flacd in single-file and per-track modes, respectively.

flac2mp3:
    Use flac_archive.tags.Tags.  Use Tags.load in get_tags .

setup.py:
    Note MIT license and install flac_archive package.

test/run:
    Copy test-runner from py-gurps.

test/test.py:
    Load all tests.

test/testtags.py:
    Test Tags class.
flac2mp3
flac_archive/tags.py [new file with mode: 0644]
setup.py
test/run [new file with mode: 0755]
test/test.py [new file with mode: 0644]
test/testtags.py [new file with mode: 0755]