Fixing some id3v1 genre numbers that perpended the id3v2 genre.

This commit is contained in:
Daniel Önnerby 2008-04-07 08:04:59 +00:00
parent d4fd4122cc
commit da8a68c1bc

View File

@ -223,7 +223,9 @@ bool TagReaderTaglib::GetID3v2Tag(musik::core::Track *track){
bool isNumber(true);
for(TagLib::String::ConstIterator charIt=genreString.begin();isNumber && charIt!=genreString.end();++charIt){
isNumber = *charIt >= '0' && *charIt <= '9';
++numberLength;
if(isNumber){
++numberLength;
}
}
if(!isNumber && numberLength>0){