poster_path is local
This commit is contained in:
parent
5556d60ace
commit
752242e40c
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ class PosterCache(models.Model):
|
||||||
name = hashlib.sha1(url).hexdigest()
|
name = hashlib.sha1(url).hexdigest()
|
||||||
try:
|
try:
|
||||||
data = ox.net.readUrl(url)
|
data = ox.net.readUrl(url)
|
||||||
self.image.name = poster.models.poster_path(self.url, 'image.jpg')
|
self.image.name = poster_path(self.url, 'image.jpg')
|
||||||
with open(self.image.path, 'w') as f:
|
with open(self.image.path, 'w') as f:
|
||||||
f.write(data)
|
f.write(data)
|
||||||
self.save()
|
self.save()
|
||||||
|
|
Loading…
Reference in a new issue