Menu

#90 Strip() not working?

open
nobody
None
5
2008-12-23
2008-12-23
Anonymous
No

hi,
I was trying the following code, but it does not work as I want. Can anybody help me? I don't see my mistake:
#include <iostream>
#include <id3/tag.h>
#include <id3/misc_support.h>
using namespace std;

int main(int argc, char** argv)
{
if(argc<=1)
{
cout<<"usage: "<<argv[0]<<" file_to_strip.mp3"<<endl;
return 0;
}
ID3_Tag ID3tags(argv[1]);
cout<<"file size: "<<ID3tags.GetFileSize()<<endl;
cout<<"stripping output: "<<ID3tags.Strip(ID3TT_ID3)<<endl;
ID3tags.Update();
ID3tags.Clear();
return 0;
}

producing the following output:
$ ./striptest ~/sound_music/musik/scan/dummy.mp3
file size: 14618752
stripping output: 3
$ id3v2 -l ~/sound_music/musik/scan/dummy.mp3
id3v1 tag info for /home/lawilog/sound_music/musik/scan/dummy.mp3:
Title : Mona Lisa Artist: Juno Reactor - Don Davis
...
so it has not been stripped :-(

thanks for help,
Lars

Discussion


Log in to post a comment.