GNOME Bugzilla – Bug 615721
Support listing video categories
Last modified: 2010-06-14 15:43:35 UTC
We can get a list of the current categories supported for videos on YouTube[1]. This will need support for the Accept-Language header, since the returned category names depend on the user's language. [1]: http://code.google.com/apis/youtube/2.0/reference.html#YouTube_Category_List
Also see the APP specification: http://www.atomenabled.org/developers/protocol/#appCategories2
commit 649ab36963e57d839a845bdf0dd823a1f4f14485 Author: Philip Withnall <philip@tecnocode.co.uk> Date: Mon Jun 14 16:36:15 2010 +0100 Bug 615721 — Support listing video categories Add support for listing the categories currently available on YouTube, along with whether they're assignable, browsable or deprecated. Coupled with locale support, this provides for localised category listings, too. Closes: bgo#615721 Makefile.am | 21 ++- docs/reference/gdata-docs.xml | 6 + docs/reference/gdata-sections.txt | 42 ++++ gdata/app/gdata-app-categories.c | 230 ++++++++++++++++++++++ gdata/app/gdata-app-categories.h | 71 +++++++ gdata/gdata.h | 4 + gdata/gdata.symbols | 10 + gdata/services/youtube/gdata-youtube-category.c | 239 +++++++++++++++++++++++ gdata/services/youtube/gdata-youtube-category.h | 72 +++++++ gdata/services/youtube/gdata-youtube-service.c | 150 ++++++++++++++ gdata/services/youtube/gdata-youtube-service.h | 8 + gdata/tests/general.c | 50 +++++ gdata/tests/youtube.c | 134 +++++++++++++ 13 files changed, 1031 insertions(+), 6 deletions(-) commit 39c4bdd6ed202fdef6bd41259a63d86209f095ba Author: Philip Withnall <philip@tecnocode.co.uk> Date: Sun Jun 13 23:27:39 2010 +0100 [core] Add service locale support Add support for setting the locale for network requests on a per-service basis, using the Accept-Language header. Helps: bgo#615721 docs/reference/gdata-sections.txt | 2 + gdata/gdata-service.c | 73 ++++++++++++++++++++++++++++++++++++- gdata/gdata-service.h | 3 ++ gdata/gdata.symbols | 2 + gdata/tests/general.c | 22 +++++++++++ 5 files changed, 101 insertions(+), 1 deletions(-)