"archive/final"))
-# here the app keeps temporary build files
-try:
- BUILD_PATH = settings.ARCHIVE_BUILD_PATH
-except AttributeError:
- BUILD_PATH = os.path.abspath(os.path.join(settings.MEDIA_ROOT,
- "archive/build"))
-
UPLOAD_URL = getattr(
settings,
'ARCHIVE_UPLOAD_URL',
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
user = User.objects.get(id=uid)
- if not os.path.exists(BUILD_PATH):
- os.makedirs(BUILD_PATH)
-
- 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)