tianshanxuester / gdata-objectivec-client

Automatically exported from code.google.com/p/gdata-objectivec-client
Other
0 stars 0 forks source link

Like/Dislike YouTube videos: ratingsLink property of GDataEntryYouTubeVideo is always nil #129

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Fetch a video list calling -[GDataServiceGoogleYouTube 
fetchFeedWithURL:completionHandler:
2. Inspect the value of the ratingsLink property of one of the 
GDataEntryYouTubeVideo instances in the entries array

What is the expected output? What do you see instead?

Expected to have the URL of the ratingsLink so that I can like/dislike videos 
as explained in YouTubeSampleWindowController.m:684. I always get nil instead.

What version of the product are you using? On what operating system?

iOS 4.3

Please provide any additional information below.

Original issue reported on code.google.com by xissburg@gmail.com on 6 Jan 2012 at 1:18

GoogleCodeExporter commented 9 years ago
Are you seeing the ratings link when you look at the XML in the http 
request/response logs after the fetch?

Original comment by grobb...@google.com on 6 Jan 2012 at 1:27

GoogleCodeExporter commented 9 years ago
Thanks for your reply. I don't know exactly how to see the xml, but one 
interesting thing that I found when I print the description of an entry of the 
entries array, is "unparsed:<gd:rating>".

Original comment by xissburg@gmail.com on 6 Jan 2012 at 1:37

GoogleCodeExporter commented 9 years ago
Look at the http log for the response. Logging is discussed at

http://code.google.com/p/gdata-objectivec-client/wiki/GDataObjCIntroduction#Logg
ing_http_server_traffic

and

http://code.google.com/p/gtm-http-fetcher/wiki/GTMHTTPFetcherIntroduction#HTTP_L
ogging

Original comment by grobb...@google.com on 6 Jan 2012 at 2:46

GoogleCodeExporter commented 9 years ago
I did it and attached the full xml. I can see the item <gd:rating average="5.0" 
max="5" min="1" numRaters="1" rel="http://schemas.google.com/g/2005#overall"/>, 
which is what I am looking for. Is that a bug in GData?

Thanks.

Original comment by xissburg@gmail.com on 6 Jan 2012 at 3:00

Attachments:

GoogleCodeExporter commented 9 years ago
According to the xml from the log, the uploads feed is being fetched; that does 
not include edit or ratings links for videos, as is apparent because there is 
no video.ratings link in the entries.

Try fetching a different feed, such as the favorites feed, that does support 
editing of the entries. If the entries have a link element with the 
video.ratings rel value, then those entries can be rated.

Note that the issue tracker is for library bugs and feature requests. Please 
use the email discussion group for questions on how to use the library. 

Original comment by grobb...@google.com on 6 Jan 2012 at 7:04