fnp
/
audio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
4b27ab0
)
Remove YouTube files after upload.
author
Radek Czajka
<rczajka@rczajka.pl>
Fri, 22 May 2020 08:59:28 +0000
(10:59 +0200)
committer
Radek Czajka
<rczajka@rczajka.pl>
Fri, 22 May 2020 08:59:28 +0000
(10:59 +0200)
src/youtube/tasks.py
patch
|
blob
|
history
diff --git
a/src/youtube/tasks.py
b/src/youtube/tasks.py
index
0c3298a
..
32e41b7
100644
(file)
--- a/
src/youtube/tasks.py
+++ b/
src/youtube/tasks.py
@@
-1,3
+1,4
@@
+import os
from archive.tasks import AudioFormatTask
from .models import YouTube
from archive.tasks import AudioFormatTask
from .models import YouTube
@@
-15,7
+16,7
@@
class YouTubeTask(AudioFormatTask):
@classmethod
def save(cls, audiobook, file_name):
"""We do not save the video files."""
@classmethod
def save(cls, audiobook, file_name):
"""We do not save the video files."""
- pass
+ os.unlink(file_name)
def put(self, user, audiobook, filename):
YouTube.objects.first().publish(audiobook, filename)
def put(self, user, audiobook, filename):
YouTube.objects.first().publish(audiobook, filename)