default to frames

This commit is contained in:
j 2011-12-28 18:05:10 +05:30
commit d3f96386c0
3 changed files with 3 additions and 2 deletions

View file

@ -1086,6 +1086,7 @@ class Item(models.Model):
cmd += ['-f', frame]
p = subprocess.Popen(cmd)
p.wait()
#remove cached versions
icons = os.path.abspath(os.path.join(settings.MEDIA_ROOT, icon))
icons = glob(icons.replace('.jpg', '*.jpg'))
for f in filter(lambda p: not p.endswith('/icon.jpg'), icons):