[libgdata] picasaweb: Fix uploads to non-default albums
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdata] picasaweb: Fix uploads to non-default albums
- Date: Fri, 24 Jun 2011 18:40:10 +0000 (UTC)
commit 3c3d1dcbe2572427dab75167fc8fd1ceeb9bb708
Author: Philip Withnall <philip tecnocode co uk>
Date: Fri Jun 24 19:04:16 2011 +0100
picasaweb: Fix uploads to non-default albums
They were previously broken due to not using the correct ID when building
a URI.
gdata/services/picasaweb/gdata-picasaweb-service.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdata/services/picasaweb/gdata-picasaweb-service.c b/gdata/services/picasaweb/gdata-picasaweb-service.c
index a5907ff..1ba6123 100644
--- a/gdata/services/picasaweb/gdata-picasaweb-service.c
+++ b/gdata/services/picasaweb/gdata-picasaweb-service.c
@@ -538,7 +538,7 @@ gdata_picasaweb_service_upload_file (GDataPicasaWebService *self, GDataPicasaWeb
}
/* PicasaWeb allows you to post to a default Dropbox */
- album_id = (album != NULL) ? gdata_entry_get_id (GDATA_ENTRY (album)) : "default";
+ album_id = (album != NULL) ? gdata_picasaweb_album_get_id (album) : "default";
/* Build the upload URI and upload stream */
upload_uri = _gdata_service_build_uri ("https://picasaweb.google.com/data/feed/api/user/default/albumid/%s", album_id);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]