diff --git a/mediawiki.cc b/mediawiki.cc index dd0299ab..67b76af2 100644 --- a/mediawiki.cc +++ b/mediawiki.cc @@ -329,6 +329,30 @@ void MediaWikiArticleRequest::requestFinished( QNetworkReply * r ) articleString.replace( QRegExp( "", Qt::CaseInsensitive, QRegExp::RegExp2 ); + reg1.setMinimal( true ); + QRegExp reg2( "= 0 ) + { + QString tag = reg1.cap(); + if( reg2.indexIn( tag ) >= 0 ) + { + QString ref = reg2.cap( 1 ); + QString audio_url = "\"Play\"/"; + articleString.replace( pos, tag.length(), audio_url ); + } + pos += 1; + } + else + break; + } + // audio url articleString.replace( QRegExp( "dictPtr->getId() )+ "