summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Bolhovskoy <elzorfox@ya.ru>2014-10-23 09:06:26 +0000
committerSergey Bolhovskoy <elzorfox@ya.ru>2014-10-23 09:06:26 +0000
commit50eb2b34f06e2ffeef9d868c9c3f10b33d1b9c92 (patch)
tree09dad24ddb4308282d2b5a3afa3158993fd5ad86
parent845af5574e8e37dcfdcc1f98888b0744341c3d2d (diff)
VKontakte:
add "search_own":1 in search music git-svn-id: http://svn.miranda-ng.org/main/trunk@10848 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--protocols/VKontakte/src/vk_thread.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/VKontakte/src/vk_thread.cpp b/protocols/VKontakte/src/vk_thread.cpp
index ebd26e4996..eb50c7d4a4 100644
--- a/protocols/VKontakte/src/vk_thread.cpp
+++ b/protocols/VKontakte/src/vk_thread.cpp
@@ -875,7 +875,7 @@ void CVkProto::RetrieveStatusMusic(const CMString &StatusMsg)
else {
if (m_iMusicSendMetod == sendBroadcastOnly){
CMString codeformat("var StatusMsg=\"%s\";var CntLmt=100;"
- "var Tracks = API.audio.search({\"q\":StatusMsg,\"count\":CntLmt});"
+ "var Tracks = API.audio.search({\"q\":StatusMsg,\"count\":CntLmt, \"search_own\":1});"
"var Cnt=Tracks.count;if (Cnt>CntLmt){Cnt=CntLmt;}"
"if (Cnt == 0){API.audio.setBroadcast();}"
"else{var i = 0;var j = 0;var Track=\" \";"
@@ -892,7 +892,7 @@ void CVkProto::RetrieveStatusMusic(const CMString &StatusMsg)
}
else if (m_iMusicSendMetod == sendBroadcastAndStatus){
CMString codeformat("var StatusMsg=\"%s\";var CntLmt=100;var Track=\" \";"
- "var Tracks = API.audio.search({\"q\":StatusMsg,\"count\":CntLmt});"
+ "var Tracks = API.audio.search({\"q\":StatusMsg,\"count\":CntLmt, \"search_own\":1});"
"var Cnt=Tracks.count;if (Cnt>CntLmt){Cnt=CntLmt;}"
"if (Cnt == 0){Track = \"&#9835; \"+StatusMsg; API.status.set({\"text\":Track});}"
"else{var i = 0;var j = -1;"