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):
|
||||||
|
if self.poster:
|
||||||
path = self.poster.path
|
path = self.poster.path
|
||||||
self.poster.delete()
|
self.poster.delete()
|
||||||
for f in glob(path.replace('.jpg', '*.jpg')):
|
for f in glob(path.replace('.jpg', '*.jpg')):
|
||||||
os.unlink(f)
|
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