Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

encoding_done view does not delete original file anymore

  • Loading branch information...
commit 432695c255b7fb8acb595332e419014938dcbc7e 1 parent 2491e46
@plaetzchen plaetzchen authored
Showing with 0 additions and 6 deletions.
  1. +0 −6 videoportal/views.py
View
6 videoportal/views.py
@@ -196,8 +196,6 @@ def encodingdone(request):
video.webmSize = resultFirst['size']
resultItem = results[settings.TRANSLOAD_THUMB_ENCODE]
resultFirst = resultItem[0]
- video.videoThumbURL = resultFirst['url']
- os.remove(video.originalFile.path)
video.originalFile = ""
elif (video.kind == 1):
results = data['results']
@@ -211,8 +209,6 @@ def encodingdone(request):
resultFirst = resultItem[0]
video.oggURL = resultFirst['url']
video.oggSize = resultFirst['size']
- os.remove(video.originalFile.path)
- video.originalFile = ""
elif (video.kind == 2):
results = data['results']
resultItem = results[settings.TRANSLOAD_MP4_ENCODE]
@@ -236,8 +232,6 @@ def encodingdone(request):
resultItem = results[settings.TRANSLOAD_THUMB_ENCODE]
resultFirst = resultItem[0]
video.videoThumbURL = resultFirst['url']
- os.remove(video.originalFile.path)
- video.originalFile = ""
video.encodingDone = True
video.save()
except Video.DoesNotExist:
Please sign in to comment.
Something went wrong with that request. Please try again.