summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/misc.cpp
diff options
context:
space:
mode:
authorElzorFox <elzorfox@ya.ru>2024-05-07 09:22:50 +0500
committerElzorFox <elzorfox@ya.ru>2024-05-07 09:22:50 +0500
commit94092b46fb9c058ca2ed70e16b6fbdf9b5b464b7 (patch)
tree9e65f1652beb3b63aaebf7bdb461cf19e3d99134 /protocols/VKontakte/src/misc.cpp
parent630d28997003864c1f8f5f63083e90abfeac97d7 (diff)
VKontakte: add 'OggInAudioMessages' hidden options (default false)
Diffstat (limited to 'protocols/VKontakte/src/misc.cpp')
-rw-r--r--protocols/VKontakte/src/misc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp
index d24b9f500e..6669fb7adf 100644
--- a/protocols/VKontakte/src/misc.cpp
+++ b/protocols/VKontakte/src/misc.cpp
@@ -1327,7 +1327,7 @@ CMStringW CVkProto::GetAttachmentDescr(const JSONNode &jnAttachments, BBCSupport
if (m_vkOptions.bFilterAudioMessages)
return L"== FilterAudioMessages ==";
- CMStringW wszUrl(jnAudioMessage["link_mp3"].as_mstring());
+ CMStringW wszUrl(jnAudioMessage[m_vkOptions.bOggInAudioMessages ? "link_ogg" : "link_mp3"].as_mstring());
CMStringW wszTranscriptText(jnAudioMessage["transcript"].as_mstring());
res.AppendFormat(L"%s", SetBBCString(TranslateT("Audio message"), iBBC, vkbbcUrl, wszUrl).c_str());