do not force by default
This commit is contained in:
parent
43837ff529
commit
a2311b0c11
1 changed files with 6 additions and 5 deletions
|
@ -506,12 +506,13 @@ class Movie(models.Model):
|
|||
p.save()
|
||||
|
||||
def delete_poster(self):
|
||||
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:
|
||||
|
|
Loading…
Reference in a new issue