openSearch:totalResults isn't going to give you an exact value
corresponding to the number of items in all cases:
http://code.google.com/apis/youtube/2.0/reference.html#youtube_data_api_tag_openSearch:totalResults
This is expected behavior, especially when it comes to deleted
comments. I'd recommend that you code around this—if you need a
completely accurate count of the number of comments, you'd have to
iterate through them all, for instance.
Cheers,
-Jeff Posnick, YouTube API Team
apiblog.youtube.com | @YouTubeDev | groups.google.com/group/youtube-
api-gdata
On Jul 22, 3:01 am, ravi <ravikiran.mare...@gmail.com> wrote:
> Hi,
> I'm trying to retrieve the comments feed of a given video. But, I'm having
> troubles because the openSearch$totalResults field returns the value that
> includes the deleted comments too. This causes the last few results to
> return with empty data and there is no indication as to how many comments
> are being deleted.
> Is there any way to detect the number of comments deleted or to get the
> correct number of comments??
>
> Thanks for the help.
--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
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