forked from 0x2620/pandora
update selected after upload subtitles
This commit is contained in:
parent
b7368d74ae
commit
0df2df3c50
1 changed files with 5 additions and 1 deletions
|
@ -160,7 +160,11 @@ def upload(request, data=None):
|
|||
f.data.save('data.raw', request.FILES['file'])
|
||||
f.save()
|
||||
os.chmod(f.data.path, 0o644)
|
||||
item.tasks.load_subtitles.delay(f.item.public_id)
|
||||
item.update_selected()
|
||||
if not item.rendered:
|
||||
item.tasks.update_timeline.delay(f.item.public_id)
|
||||
else:
|
||||
item.tasks.load_subtitles.delay(f.item.public_id)
|
||||
response = json_response(text='file saved')
|
||||
else:
|
||||
response = json_response(status=403, text='permission denied')
|
||||
|
|
Loading…
Reference in a new issue