[완료]google youtube 검색 api 에 한글이 안되나요?
글쓴이: zelon / 작성시간: 월, 2009/12/14 - 11:08오후
한 일주일전까지는 잘 했던거 같은데 이상하게 3~4일전부터 한글 검색이 안되는 것 같은데, 혹시 kldp 에서 자바스크립트로 youtube api 쓰시는분 계신가요?
왜 갑자기 한글 검색이 안될까요? -0-;
google.load("search", "1");
google.setOnLoadCallback(onLoad);
var strLog = "";
var strResult = "";
function onLoad()
{
startVideoSearch("너 때문에 애프터스쿨");
}
function startVideoSearch(queryWord)
{
imageSearch = new google.search.VideoSearch();
imageSearch.setSearchCompleteCallback(this, zonSearchComplete, null);
statusMsg("<a href='http://www.youtube.com/results?search_query=" + queryWord.replace(" ", "+") + "' target='_blank'>" + "QueryWord : " + queryWord + "</a>");
imageSearch.execute(queryWord);
}
function statusMsg(msg)
{
strLog = strLog + msg + "<br>";
document.getElementById("log").innerHTML = strLog;
}
function zonSearchComplete()
{
statusMsg("Video search completed");
// Check that we got results
if (imageSearch.results && imageSearch.results.length > 0)
{
// 항상 여기에 들어오지 않습니다.
}
}요 몇일간 api 가 잠시 문제가 있었던 것 같네요. 이번주말에 다시 잘되는걸 확인했습니다. -0-;
Forums:


댓글 달기