Skip to content

Commit

Permalink
Expose camera, add ISO and focal keywords.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ken committed Jul 24, 2009
1 parent dbcc056 commit 7cbe3b1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion singleshot/fsloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ def query_tag(self, tags):

def most_tags(self):
self.ready()
x = [(unicode(tag.name), tag) for tag in self.tags.values() if tag.count > 3 and ':' not in tag.name]
x = [(unicode(tag.name), tag) for tag in self.tags.values() if tag.count > 3 and 'publish:' not in tag.name]
return x

def recent_images(self, count=10):
Expand Down Expand Up @@ -561,6 +561,10 @@ def record_keyword(tag):
record_keyword('publish:%04d-%02d' % (d.year, d.month))
record_keyword('publish:%04d' % (d.year))
record_keyword('publish:%04d-%02d-%02d' % (d.year, d.month, d.day))
if item.exposure_iso:
record_keyword('iso:%s' % item.exposure_iso)
if item.exposure_focal:
record_keyword('focal:%smm' % item.exposure_focal)
if item.camera_model:
record_keyword('camera:%s' % item.camera_model)
record_keywords()
Expand Down

0 comments on commit 7cbe3b1

Please sign in to comment.