Thursday, April 26, 2012

[YouTube-API] Re: strange search result

Looking deeper, there are results but the web app bombs out because it tries to read the viewCount property which is suddenly undefined when the search term is as described below. So to summarise what we found so far.. Search 'david camero rupert' returns a viewCount property but 'david cameron rupert' returns viewCount of undefined. Would best practice to be to surround all references to properties in conditional 'if !undefined' ? surely not!?

On Thursday, April 26, 2012 5:12:14 PM UTC+1, wg wrote:
This could be something to be ready for when our clients ask why some search terms don't work. We've been looking at this again - it really is making us very curious. The search term 'david cameron ruper' with no 't' on rupert returns results of yes guess what - the recent news - but when the result has a 't' added on the end no results are returned. Likewise, when the search term is 'david camero rupert' with no 'n' on cameron we get a couple of results but as soon as the name is completed no results. If anybody else can be bothered to try let us know if you have the same strange results in any other 3rd party youtube search situation. Perhaps there are other terms that for some reason will return no results for whatever reason. It would be good to know the reason as we might get questions from our clients!

On Thursday, April 26, 2012 1:55:38 PM UTC+1, wg wrote:
This is a weird observation I just stumbled across.. if I search for
'David Cameron' using the youtube search API I get results. If I
search for 'Rupert Murdoch' I also get results. However, if I do a
search for 'David Cameron Rupert Murdoch' it doesn't work. If I do a
search for 'David Cameron Nick Clegg' or David Cameron and anybody
else it does work. Why would a search associating Cameron and Murdoch
not work in the youtube API? It works on youtube.com... weird! Can
anybody think of a non conspiracy related technical reason?

--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To view this discussion on the web visit https://groups.google.com/d/msg/youtube-api-gdata/-/7Vs0JSOuUKcJ.
To post to this group, send email to youtube-api-gdata@googlegroups.com.
To unsubscribe from this group, send email to youtube-api-gdata+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/youtube-api-gdata?hl=en.

No comments:

Post a Comment