Skip to content

Loading…

Use "title" as "summary" when there is no description for the photo. #4

Merged
merged 1 commit into from

2 participants

@skarcha

As subject. :-)

P.S.: Thanks A LOT for the script.. ;)

@gubatron gubatron merged commit cf6570a into gubatron:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1 flickasa.py
View
2 flickasa.py
@@ -259,7 +259,7 @@ def download_callback(count, blocksize, totalsize):
photo_info = FLICKR.photos_getInfo(photo_id=flickr_photo.get('id')).find('photo')
picasa_photo.media.keywords = gdata.media.Keywords()
picasa_photo.media.keywords.text = ', '.join([t.get('raw') for t in photo_info.find('tags').getchildren()])
- picasa_photo.summary.text = photo_info.find('description').text
+ picasa_photo.summary.text = photo_info.find('description').text or flickr_photo.get('title')
#random pause between 1 to 5 seconds
s = random.randint(0,3)
Something went wrong with that request. Please try again.