calopter / googlecl

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

Create album and post files in one setp #308

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
===NOTE===
If you're asking for a new service that isn't supported by gdata-python-
client, this will immediately get flagged as WontFix.
==========

What service (Calendar, Docs, Picasa) should be enhanced?

Picasa

What is the enhancement?

Currently I have a one-to-one relation between albums and folders with photo 
sets. To upload a photo-set/album I have to create album and post files. 

I think it would be nice to create-album and post photos in one step. Something 
like:

$ google picasa post-album $HOME/some_album

That command would create the some_album album and post all the photos inside 
it.

Original issue reported on code.google.com by ferranb@gmail.com on 4 Oct 2010 at 12:16

GoogleCodeExporter commented 8 years ago
The create command will take paths to photos. Maybe just update the create task 
so that it will intelligently interpret a directory as both an album title and 
photo paths?

Original comment by thmil...@google.com on 4 Oct 2010 at 8:50

GoogleCodeExporter commented 8 years ago
Currently, this seems to work:

$ google picasa create --title mountain *.jpg

With that command the album "mountain" is created and all the jpg files in 
current directory are uploaded.

What about something like the following?

$ google picasa create --src path/to/beach 

This would create the "beach" album and add all the photo files in path/to/beach

Original comment by ferranb@gmail.com on 5 Oct 2010 at 2:29

GoogleCodeExporter commented 8 years ago
Yup, that's what I'm thinking. Should be pretty easy to do.

Original comment by tom.h.mi...@gmail.com on 5 Oct 2010 at 11:01

GoogleCodeExporter commented 8 years ago
Attached patch proposal. If accepted, the usage will be as follow:

$ google picasa create --title jumping # Just creates the jumping album
$ google picasa create /home/user/photos # Creates "photos" album and upload 
all photos inside directory
$ google picasa create summer # Mmm... will create "summer" album and try to 
upload photos inside "summer"... Can be confusing...
$ google picasa create --src /home/user/photos # Creates "photos" album and 
upload all photos inside
$ google picasa create --title jumping --src /home/user/photos1 
/home/user/photos2 # Creates jumping album and post photos inside both dirs
$ google picasa create --src /home/user/photos1 /home/user/photos2 # Creates 
photos1 album and post photos in both dirs

Bonus feature:

$ google picasa post --title summer --src /home/user/photos1 /home/user/photos2 
*jpg # post all photos on dirs in "summer" album

Original comment by ferranb@gmail.com on 8 Oct 2010 at 12:54

Attachments:

GoogleCodeExporter commented 8 years ago
Any feedback about the provided patch? Thanks

Original comment by ferranb@gmail.com on 18 Oct 2010 at 8:30