Skip to content
This repository has been archived by the owner on Dec 21, 2022. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #3 from tomxtobin/support-id3v2version
Support id3v2Version arg in MPEG::File::save for Taglib >=1.8
  • Loading branch information
inducer committed Jun 25, 2013
2 parents 791f9b2 + d471496 commit 48ea5b8
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/wrapper/id3.cpp
Expand Up @@ -86,7 +86,11 @@ namespace
// -------------------------------------------------------------
// MPEG
// -------------------------------------------------------------
MF_OL(save, 0, 2)
#if (TAGPY_TAGLIB_HEX_VERSION >= 0x10800)
MF_OL(save, 0, 3)
#else
MF_OL(save, 0, 2)
#endif
MF_OL(ID3v1Tag, 0, 1)
MF_OL(ID3v2Tag, 0, 1)
MF_OL(APETag, 0, 1)
Expand Down Expand Up @@ -416,7 +420,11 @@ void exposeID3()
init<const char *, optional<bool, AudioProperties::ReadStyle> >())
.def(init<const char *, ID3v2::FrameFactory *, optional<bool, AudioProperties::ReadStyle> >())
.def("save",
(bool (MPEG::File::*)(int, bool))
#if (TAGPY_TAGLIB_HEX_VERSION >= 0x10800)
(bool (MPEG::File::*)(int, bool, int))
#else
(bool (MPEG::File::*)(int, bool))
#endif
&cl::save,
save_overloads())
.def("ID3v1Tag",
Expand Down

0 comments on commit 48ea5b8

Please sign in to comment.