[libgdata] picasaweb: Support <gphoto:access>protected</gphoto:access> in albums
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdata] picasaweb: Support <gphoto:access>protected</gphoto:access> in albums
- Date: Thu, 19 Jun 2014 12:30:12 +0000 (UTC)
commit 98e8a16c9cdb4efcb3e2f98e44622469765accfb
Author: Philip Withnall <philip withnall collabora co uk>
Date: Thu Jun 19 13:28:34 2014 +0100
picasaweb: Support <gphoto:access>protected</gphoto:access> in albums
The documentation
https://developers.google.com/picasa-web/docs/2.0/reference?csw=1#Visibility
doesn’t have any mention of this, so let’s alias it to
GDATA_PICASAWEB_PRIVATE for the moment.
It seems to be set on albums which are marked as visible only to the
owner.
gdata/services/picasaweb/gdata-picasaweb-album.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gdata/services/picasaweb/gdata-picasaweb-album.c
b/gdata/services/picasaweb/gdata-picasaweb-album.c
index be1cabe..0b41cfe 100644
--- a/gdata/services/picasaweb/gdata-picasaweb-album.c
+++ b/gdata/services/picasaweb/gdata-picasaweb-album.c
@@ -682,7 +682,8 @@ parse_xml (GDataParsable *parsable, xmlDoc *doc, xmlNode *node, gpointer user_da
xmlChar *access_level = xmlNodeListGetString (doc, node->children, TRUE);
if (xmlStrcmp (access_level, (xmlChar*) "public") == 0) {
gdata_picasaweb_album_set_visibility (self, GDATA_PICASAWEB_PUBLIC);
- } else if (xmlStrcmp (access_level, (xmlChar*) "private") == 0) {
+ } else if (xmlStrcmp (access_level, (xmlChar*) "private") == 0 ||
+ xmlStrcmp (access_level, (xmlChar*) "protected") == 0) {
gdata_picasaweb_album_set_visibility (self, GDATA_PICASAWEB_PRIVATE);
} else {
gdata_parser_error_unknown_content (node, (gchar*) access_level, error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]