I am working on the same exact problem and I have no idea why it doesn't 
work. My guess is that maybe there might be another way of updating the 
properties like using the POST or PUT method but since I'm just learning 
about them I am quite lost on how to make them work.

So here are some interesting observations I have made:

1) When changing properties of a photo a copy is made
2) everything so far that I've tested changes except the time stamp

This is what I've tried (p==photo):

p.exif.time=gdata.exif.Time(text='110177280000')
p.timestamp=gdata.photos.Timestamp(text='110177280000')
p=gd_client.UpdatePhotoMetadata(p)

I think you need set photo.timestamp to a timestamp type but I am not sure.
Also, I've set both exif.time and the photo.timestamp to the same value 
since I read that they should theoretically be the same even though when I 
read some mp4 file exif.time data I think none of them contained exif.time 
data. The image files did contain both exif.time and photo.timestamp data. 
Not sure that this will be relevant but I hope you get more ideas because 
I'm running out of things to try.



On Tuesday, December 29, 2015 at 10:25:21 PM UTC-8, Rob Bredow wrote:
>
>
> I have a python script designed to change the timestamp on videos (since 
> Google Photos uploader uploads them with the wrong dates) and it works 
> perfectly to change all the fields *except* for the timestamp. 
> Unfortunately, it took me a long to realize this must be a server-side bug.
>
> Here's an excerpt for reference:
>
> print "Getting list of Albums..."
>
> albums = gd_client.GetUserFeed()
> for album in albums.entry:
>
>   print "Getting list of", album.numphotos.text, "photos in Album", 
> album.title.text 
>   if album.title.text == 'Test':
>     photos = 
> gd_client.GetFeed('/data/feed/api/user/default/albumid/%s?kind=photo' % 
> (album.gphoto_id.text))
>     for photo in photos.entry:
>         print '  Photo:', photo.title.text
>   
>         if photo.title.text and photo.timestamp.text and photo.size.text:
>           if photo.title.text in filenames.keys():
>             print "Filename match for", photo.title.text
>             if int(photo.size.text) in filenames[photo.title.text].keys():
>               print "  ...and a size match for ", photo.title.text
>               print "    Existing date is ", photo.timestamp.text
>               print "    Local date is ", 
> filenames[photo.title.text][int(photo.size.text)]['date']
>  
>               photo.summary.text = u'a test'; 
>               newtime = "%i" % 
> (int(filenames[photo.title.text][int(photo.size.text)]['date'])*1000)
>               photo.timestamp.text = str(newtime)
>
>               print "    New db date will be", photo.timestamp.text, 
>  
>               try: 
>                 photo = gd_client.UpdatePhotoMetadata(photo)
>                 print "    New date submitted to Google", 
> photo.timestamp.text,
>               except:
>                 print "    **Update failed...**"
>                 pass
>         else:
>           print "Debug: Found photo",photo.title.text,"with no title, 
> timestate and/or size. Skipping..."
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Picasa Web Albums API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-picasa-data-api.
For more options, visit https://groups.google.com/d/optout.

Reply via email to