fnp
/
audio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove BUILD_PATH, that's what TMPDIR is for.
[audio.git]
/
src
/
youtube
/
models.py
diff --git
a/src/youtube/models.py
b/src/youtube/models.py
index
f0ecc6c
..
eb669e0
100644
(file)
--- a/
src/youtube/models.py
+++ b/
src/youtube/models.py
@@
-119,16
+119,13
@@
class YouTube(models.Model):
def prepare_audio(self, input_path):
files = []
def prepare_audio(self, input_path):
files = []
- delete = []
if self.intro_flac:
files.append(standardize_audio(self.intro_flac.path))
if self.intro_flac:
files.append(standardize_audio(self.intro_flac.path))
- delete.append(files[-1])
- files.append(input_path)
+ files.append(standardize_audio(input_path, cache=False))
if self.outro_flac:
files.append(standardize_audio(self.outro_flac.path))
if self.outro_flac:
files.append(standardize_audio(self.outro_flac.path))
- delete.append(files[-1])
output = concat_audio(files)
output = concat_audio(files)
- for d in
delete
:
+ for d in
files
:
unlink(d)
return output
unlink(d)
return output