diff options
| -rw-r--r-- | src/plugins/General/rgscan/rgscandialog.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/plugins/General/rgscan/rgscandialog.cpp b/src/plugins/General/rgscan/rgscandialog.cpp index 0cb237183..78a5276d4 100644 --- a/src/plugins/General/rgscan/rgscandialog.cpp +++ b/src/plugins/General/rgscan/rgscandialog.cpp @@ -36,6 +36,7 @@ #include <taglib/id3v2tag.h> #include <taglib/textidentificationframe.h> #include <taglib/mp4file.h> +#include <taglib/opusfile.h> #include "rgscanner.h" #include "gain_analysis.h" #include "rgscandialog.h" @@ -76,7 +77,8 @@ RGScanDialog::RGScanDialog(QList <PlayListTrack *> tracks, QWidget *parent) : Q ext == "oga" || //ogg flac ext == "ogg" || //ogg vorbis ext == "wv" || //wavpack - ext == "m4a") //aac (mp4 container) + ext == "m4a" || //aac (mp4 container) + ext == "opus") { paths.append(track->path()); QString name = formatter.format(track); @@ -434,5 +436,11 @@ void RGScanDialog::on_writeButton_clicked() writeMP4Tag(file.tag(), item); file.save(); } + else if(ext == "opus") + { + TagLib::Ogg::Opus::File file(qPrintable(item->url)); + writeVorbisComment(file.tag(), item); + file.save(); + } } } |
