Commit 98e8a16c authored by Philip Withnall's avatar Philip Withnall
Browse files

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.
parent 109417f6
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment