diff --git a/article-style.css b/article-style.css index 0e86dfcd..cacb896b 100644 --- a/article-style.css +++ b/article-style.css @@ -1624,6 +1624,7 @@ in the bottom-right corner of the content area */ padding-right: 18px; } .mwiki #bodyContent a.external[href $=".ogg"], .mwiki #bodyContent a.external[href $=".OGG"], +.mwiki #bodyContent a.external[href $=".oga"], .mwiki #bodyContent a.external[href $=".OGA"], .mwiki #bodyContent a.external[href $=".mid"], .mwiki #bodyContent a.external[href $=".MID"], .mwiki #bodyContent a.external[href $=".midi"], .mwiki #bodyContent a.external[href $=".MIDI"], .mwiki #bodyContent a.external[href $=".mp3"], .mwiki #bodyContent a.external[href $=".MP3"], diff --git a/articleview.cc b/articleview.cc index 4850946a..5a39bdc5 100644 --- a/articleview.cc +++ b/articleview.cc @@ -1953,7 +1953,7 @@ void ArticleView::contextMenuRequested( QPoint const & pos ) fileName = savePath + "/" + name; fileName = QFileDialog::getSaveFileName( parentWidget(), tr( "Save sound" ), fileName, - tr( "Sound files (*.wav *.ogg *.mp3 *.mp4 *.aac *.flac *.mid *.wv *.ape);;All files (*.*)" ) ); + tr( "Sound files (*.wav *.ogg *.oga *.mp3 *.mp4 *.aac *.flac *.mid *.wv *.ape);;All files (*.*)" ) ); } else { diff --git a/filetype.cc b/filetype.cc index bea1b022..e28ca128 100644 --- a/filetype.cc +++ b/filetype.cc @@ -55,6 +55,7 @@ bool isNameOfSound( string const & name ) endsWith( s, ".au" ) || endsWith( s, ".voc" ) || endsWith( s, ".ogg" ) || + endsWith( s, ".oga" ) || endsWith( s, ".mp3" ) || endsWith( s, ".m4a") || endsWith( s, ".aac" ) || diff --git a/mediawiki.cc b/mediawiki.cc index 187e62f7..0f4d8744 100644 --- a/mediawiki.cc +++ b/mediawiki.cc @@ -480,9 +480,9 @@ void MediaWikiArticleRequest::requestFinished( QNetworkReply * r ) #endif // audio url #if QT_VERSION >= QT_VERSION_CHECK( 5, 0, 0 ) - articleString.replace( QRegularExpression( "dictPtr->getId() ) + "