clear siteposter cache too
This commit is contained in:
parent
5488eaf223
commit
c19598c4d7
2 changed files with 5 additions and 3 deletions
|
|
@ -673,8 +673,8 @@ def setPoster(request, data):
|
|||
valid_sources = [p['source'] for p in item.get_posters()]
|
||||
if data['source'] in valid_sources:
|
||||
item.poster_source = data['source']
|
||||
if item.poster:
|
||||
item.poster.delete()
|
||||
item.remove_poster()
|
||||
item.clear_poster_cache(item.path('siteposter.jpg'))
|
||||
item.save()
|
||||
tasks.update_poster(item.public_id)
|
||||
response = json_response()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue