fnp
/
audio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Faster video cutting.
[audio.git]
/
src
/
archive
/
tasks.py
diff --git
a/src/archive/tasks.py
b/src/archive/tasks.py
index
b5675ce
..
4b8f5fe
100644
(file)
--- a/
src/archive/tasks.py
+++ b/
src/archive/tasks.py
@@
-18,7
+18,7
@@
from mutagen import id3
from apiclient import api_call
from archive.constants import status
from archive.models import Audiobook
from apiclient import api_call
from archive.constants import status
from archive.models import Audiobook
-from archive.settings import
BUILD_PATH,
COVER_IMAGE, UPLOAD_URL
+from archive.settings import COVER_IMAGE, UPLOAD_URL
from archive.utils import ExistingFile
from archive.utils import ExistingFile
@@
-93,15
+93,7
@@
class AudioFormatTask(Task):
user = User.objects.get(id=uid)
user = User.objects.get(id=uid)
- try:
- os.makedirs(BUILD_PATH)
- except OSError as e:
- if e.errno == errno.EEXIST:
- pass
- else:
- raise
-
- out_file = NamedTemporaryFile(delete=False, prefix='%d-' % aid, suffix='.%s' % self.ext, dir=BUILD_PATH)
+ out_file = NamedTemporaryFile(delete=False, prefix='%d-' % aid, suffix='.%s' % self.ext)
out_file.close()
self.encode(audiobook.source_file.path, out_file.name)
self.set_status(aid, status.TAGGING)
out_file.close()
self.encode(audiobook.source_file.path, out_file.name)
self.set_status(aid, status.TAGGING)