forked from 0x2620/pandora
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()
|
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:
|
||||||
|
|
Loading…
Reference in a new issue