]> diplodocus.org Git - flac-archive/commit
Hm, why just copy front cover PICTUREs from flac to mp3? The flac
authorepg <>
Thu, 2 Nov 2006 10:42:28 +0000 (10:42 +0000)
committerepg <>
Thu, 2 Nov 2006 10:42:28 +0000 (10:42 +0000)
commit06b03f37a431a7e9763ee0306edad5a8946dfa84
tree2126baf87040da7a6dd27ab3ef0caf07e899e6de
parent7c8eeba5a67251012ecdebdba9a677b4aba04f9d
Hm, why just copy front cover PICTUREs from flac to mp3?  The flac
PICTURE metadata block has the exact same metadata as the mp3 ID3v2
APIC frame; just copy them all.

flac.c:
    (flac_pictures): Return fields in the same order they're found in
    the FLAC format.  Convert the description to a unicode object
    rather than returning a UTF-8 encoded str object.

taglib.cc:
    (taglib_apic): Take a list of picture tuples and add them all as
    APIC frames.

    (add_apic_frame_to_mp3): Take the list of picture tuples and pass
    them straight to taglib_apic.

flac2mp3:
    (flac2mp3): Take a list of picture tuples instead of just one;
    pass them all to add_apic_frame_to_mp3.

    (find_pics): Rename from find_pic.  Save all PICTURE metadata
    blocks rather than just saving the first front cover picture.
flac.c
flac2mp3
taglib.cc