summaryrefslogtreecommitdiff
path: root/gdata
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2014-06-19 13:28:34 +0100
committerPhilip Withnall <philip.withnall@collabora.co.uk>2014-06-19 13:28:34 +0100
commit98e8a16c9cdb4efcb3e2f98e44622469765accfb (patch)
tree219960e3d4f20fe97f8091e672dadb0aff0b3eb8 /gdata
parent109417f61d250f0482c3d9d93c0c7caff04d1059 (diff)
downloadlibgdata-98e8a16c9cdb4efcb3e2f98e44622469765accfb.tar.gz
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.
Diffstat (limited to 'gdata')
-rw-r--r--gdata/services/picasaweb/gdata-picasaweb-album.c3
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 be1cabed..0b41cfe2 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);