add debug log

This commit is contained in:
Jay 2019-03-27 13:35:32 +00:00
parent b98aab2d0d
commit d299bbe24b
1 changed files with 2 additions and 0 deletions

View File

@ -113,7 +113,9 @@ func QueryYoutubeName(id string) (n string, err error) {
}
for _, v := range apiRes.Items {
fmt.Println("data :::: ", v)
if v.ID == id {
fmt.Println("id match ::: ", v.Sinppet)
return v.Sinppet.Title, nil
}
}