forked from 0x2620/pandora
fix poster after upload
This commit is contained in:
parent
601775eb56
commit
7aaddb29a9
1 changed files with 1 additions and 0 deletions
|
@ -201,6 +201,7 @@ def addMedia(request):
|
||||||
}
|
}
|
||||||
i.user = request.user
|
i.user = request.user
|
||||||
i.save()
|
i.save()
|
||||||
|
i.make_poster(True)
|
||||||
f = models.File(oshash=oshash, item=i)
|
f = models.File(oshash=oshash, item=i)
|
||||||
f.path = data.get('filename', 'Untitled')
|
f.path = data.get('filename', 'Untitled')
|
||||||
extension = f.path.split('.')
|
extension = f.path.split('.')
|
||||||
|
|
Loading…
Reference in a new issue