diff options
Diffstat (limited to 'src/plugins/General')
| -rw-r--r-- | src/plugins/General/rgscan/rgscandialog.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/plugins/General/rgscan/rgscandialog.cpp b/src/plugins/General/rgscan/rgscandialog.cpp index f2c4e995d..c097eadad 100644 --- a/src/plugins/General/rgscan/rgscandialog.cpp +++ b/src/plugins/General/rgscan/rgscandialog.cpp @@ -31,6 +31,7 @@ #include <taglib/flacfile.h> #include <taglib/xiphcomment.h> #include <taglib/oggflacfile.h> +#include <taglib/vorbisfile.h> #include "rgscanner.h" #include "gain_analysis.h" #include "rgscandialog.h" @@ -63,8 +64,9 @@ RGScanDialog::RGScanDialog(QList <PlayListTrack *> tracks, QWidget *parent) : Q QString ext = track->url().section(".", -1).toLower(); if(ext == "mp3" || //mpeg 1 layer 3 - ext == "flac" || //flac - ext == "oga") //native flac + ext == "flac" || //native flac + ext == "oga" || //ogg flac + ext == "ogg") //ogg vorbis { paths.append(track->url()); QString name = formatter.parse(track); @@ -322,5 +324,11 @@ void RGScanDialog::on_writeButton_clicked() writeVorbisComment(file.tag(), item); file.save(); } + else if(ext == "ogg") + { + TagLib::Ogg::Vorbis::File file(qPrintable(item->url)); + writeVorbisComment(file.tag(), item); + file.save(); + } } } |
