joebhakim / googlecl

Automatically exported from code.google.com/p/googlecl
0 stars 0 forks source link

Add list fields for Picasa albums #286

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
picasa list-albums title,date

What is the expected output? What do you see instead?
Expected: "Album Name",2010-09-17
Instead: "Album Name",N/A

What version of the product are you using? On what operating system? What
version of gdata-python-client (aka python-gdata)?
google 0.9.10
Linux dgvm-laptop 2.6.32-24-generic #42-Ubuntu SMP Fri Aug 20 14:21:58 UTC 2010 
x86_64 GNU/Linux
python-gdata 2.0.8-1.1

Please provide any additional information below.
- I have ~1200 albums on picasaweb;
- The date is fundamental part of my albums identification;
- Despite of undocumented, I see this as mandatory;

Original issue reported on code.google.com by oxes...@gmail.com on 17 Sep 2010 at 6:24

GoogleCodeExporter commented 8 years ago
What are you referring for "album date"? As I understand only are available two 
timestamps: "published" (I guess means created, not sure...) and "updated".

Try this:

google picasa list-albums --fields title,published,updated

Original comment by ferranb@gmail.com on 29 Sep 2010 at 1:56

GoogleCodeExporter commented 8 years ago
The argument "--fields" doesn't exists in the man page nor the values 
"published" and "updated".
The field "published" is actually what I referred.
In the GData Java API we have "Date date = album.getDate()".
When we use Picasa, the album's date is got from the metadata field of the 
first photo with the date taken.

Original comment by oxes...@gmail.com on 29 Sep 2010 at 12:44

Attachments:

GoogleCodeExporter commented 8 years ago
So, the "defect" is documentation (man page).

Original comment by oxes...@gmail.com on 29 Sep 2010 at 12:46

GoogleCodeExporter commented 8 years ago
The date you are referring in the screen-shot is retrieved through "published". 

To demonstrate:

1. Run: google picasa list-albums --title album_name --fields published
2. Change the date through web
3. Run again command in step 1

Original comment by ferranb@gmail.com on 30 Sep 2010 at 12:07

GoogleCodeExporter commented 8 years ago
Running "google --version" I get "google 0.9.10"

Running "google picasa list-albums --title album_name --fields published" I get 
"google: error: no such option: --fields"

Running "google picasa list-albums --title "Dia dos Pais" published" it runs 
fine; I get "
2010-08-08T12:00:00.000Z
2007-08-12T12:00:00.000Z
2003-08-10T12:00:00.000Z
"

I don't have doubts about how to use it. But... there is some inconsistency 
between our versions. Besides the "--fields" issue, in your manpage, are the 
fields "published" and "updated" shown? In my manpage, there is nothing about 
this two fields.
There is no software bug here. The guilt is the documentation I have.

Thanks for the attention.

Original comment by oxes...@gmail.com on 30 Sep 2010 at 1:10

GoogleCodeExporter commented 8 years ago
The inconsistence happens because I'm running the version in trunk. Sorry the 
confusion...

Original comment by ferranb@gmail.com on 1 Oct 2010 at 10:17

GoogleCodeExporter commented 8 years ago
Better documentation and support for list fields would be nice.

You can get the album title in there too if you do something like 

google picasa list-albums --title "Dia dos Pais" name,published

will also give the full name of the album. See the Manual wiki page for more on 
list fields. 

And those publication dates can be cleaned up for human readability.

Original comment by thmil...@google.com on 6 Oct 2010 at 4:45