OSDN Git Service

Updated Web Updater and Elevator binaries. Now has massive code clean-up.
[lamexp/LameXP.git] / src / Encoder_MP3.cpp
index 9134858..add40b5 100644 (file)
@@ -118,11 +118,11 @@ bool MP3Encoder::encode(const QString &sourceFile, const AudioFileModel &metaInf
 
        if(bUseUCS2) args << "--id3v2-ucs2"; //Must specify this BEFORE "--tt" and friends!
 
-       if(!metaInfo.fileName().isEmpty()) args << "--tt" << metaInfo.fileName();
-       if(!metaInfo.fileArtist().isEmpty()) args << "--ta" << metaInfo.fileArtist();
-       if(!metaInfo.fileAlbum().isEmpty()) args << "--tl" << metaInfo.fileAlbum();
-       if(!metaInfo.fileGenre().isEmpty()) args << "--tg" << metaInfo.fileGenre();
-       if(!metaInfo.fileComment().isEmpty()) args << "--tc" << metaInfo.fileComment();
+       if(!metaInfo.fileName().isEmpty()) args << "--tt" << cleanTag(metaInfo.fileName());
+       if(!metaInfo.fileArtist().isEmpty()) args << "--ta" << cleanTag(metaInfo.fileArtist());
+       if(!metaInfo.fileAlbum().isEmpty()) args << "--tl" <<cleanTag( metaInfo.fileAlbum());
+       if(!metaInfo.fileGenre().isEmpty()) args << "--tg" << cleanTag(metaInfo.fileGenre());
+       if(!metaInfo.fileComment().isEmpty()) args << "--tc" << cleanTag(metaInfo.fileComment());
        if(metaInfo.fileYear()) args << "--ty" << QString::number(metaInfo.fileYear());
        if(metaInfo.filePosition()) args << "--tn" << QString::number(metaInfo.filePosition());
        if(!metaInfo.fileCover().isEmpty()) args << "--ti" << QDir::toNativeSeparators(metaInfo.fileCover());