calopter / googlecl

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

picasa post forces manual album select when exact match available in multiple matching albums #472

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create albums 'Edinburgh' and 'Edinburgh - New Years'
2. Post a photo to the album 'Edinburgh'

What is the expected output? What do you see instead?

I would expect the scripts to select the initial album and upload to that, as 
there is an exact match.

Instead it prompts the user - this is not very useful in a batch script that 
uploads many photos automatically.

What version of the product are you using? On what operating system? 

latest/trunk, on Ubuntu 11.10

Original issue reported on code.google.com by moro...@gmail.com on 1 Apr 2012 at 1:28

GoogleCodeExporter commented 8 years ago
I have made a patch that will check for exact matches - not exactly the most 
efficient method possible, but simple and not a problem for this sort of usage 
with small numbers of similarly named photo albums.

The loop checking for a match checks all returned results. However, assuming 
that matches are returned in lexographical order, an exact match will always be 
the first result in which case the loop will only iterate once. Checking all 
results is merely for safety, in case my assumption above is incorrect.

Original comment by moro...@gmail.com on 1 Apr 2012 at 1:36

Attachments: