In Windows when updating a id3v2 tag (one after the
other really quick, in same file) it leaves the
original .mp3 file and a .mp3.XXXXXX
I have had to add in this bit of code after writing the tag
for now:
SaveThisID3v2TagElement(szFileName,
Element, TagValue);
//-------bug fix for ID3lib
that does not remove .XXXXXX file--
char XXX[MAX_PATH];
strcpy(XXX,
szFileName);
strcat(XXX, ".XXXXXX");
if
(SPaths::DoesFileExist(XXX))
{
if
(SPaths::DoesFileExist(szFileName))
{
DWORD Entry = GetTickCount();
while (!DeleteFile(szFileName))
{
Sleep(100);
if (GetTickCount() - Entry > 4000)
break;
}
}
DWORD
Entry = GetTickCount();
while (!
MoveFile(XXX, szFileName))
{
Sleep(100);
if (GetTickCount() - Entry > 4000)
break;
}
}
Logged In: YES
user_id=564388
Does it reach the line "rename(sTempFile, filename.c_str());"
Logged In: YES
user_id=350722
I didn't get change to delve too much into it. I was using an
earlier version of ID3Lib, I updated to the latest and there was
the problem.
Sorry for the vague answer...
Logged In: YES
user_id=350722
It might be down to how I write the tags, they are written one
item at a time, so:
Tag is Opened..Artist is written...Tag is Closed...Tag is
Opened...Album is written...Tag is Closed.
Logged In: YES
user_id=564388
I couldn't reproduce this, does it happen all the time or just
sometimes?