From a2311b0c1180cf89ddcf45afdcd72e19033fdfe0 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 13 Sep 2010 17:25:37 +0200 Subject: [PATCH] do not force by default --- pandora/backend/models.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pandora/backend/models.py b/pandora/backend/models.py index 19e796ae..f3951df0 100644 --- a/pandora/backend/models.py +++ b/pandora/backend/models.py @@ -506,12 +506,13 @@ class Movie(models.Model): p.save() def delete_poster(self): - path = self.poster.path - self.poster.delete() - for f in glob(path.replace('.jpg', '*.jpg')): - os.unlink(f) + if self.poster: + path = self.poster.path + self.poster.delete() + 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: url = self.poster_url if not url: