git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@709 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2010-07-25 20:32:26 +00:00
commit 8cc84eaf1b
2 changed files with 5 additions and 1 deletions

View file

@ -82,6 +82,10 @@ namespace GreenshotFlickrPlugin {
flickr.PhotosSetMeta(photoId, "New Title", "New Description");
// Get list of users sets
PhotosetCollection sets = flickr.PhotosetsGetList();
if (sets.Count == 0) {
flickr.PhotosetsCreate("Greenshot", "Greenshot screenshots", photoId);
sets = flickr.PhotosetsGetList();
}
// Get the first set in the collection
Photoset set = sets[0];
// Add the photo to that set