do not force by default

This commit is contained in:
j 2010-09-13 17:25:37 +02:00
parent 43837ff529
commit a2311b0c11

View file

@ -506,12 +506,13 @@ class Movie(models.Model):
p.save() p.save()
def delete_poster(self): def delete_poster(self):
path = self.poster.path if self.poster:
self.poster.delete() path = self.poster.path
for f in glob(path.replace('.jpg', '*.jpg')): self.poster.delete()
os.unlink(f) for f in glob(path.replace('.jpg', '*.jpg')):
os.unlink(f)
def download_poster(self, force=True): def download_poster(self, force=False):
if not self.poster or force: if not self.poster or force:
url = self.poster_url url = self.poster_url
if not url: if not url: