fnp
/
audio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix
[audio.git]
/
src
/
youtube
/
tasks.py
diff --git
a/src/youtube/tasks.py
b/src/youtube/tasks.py
index
f58df0a
..
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
@@
-12,5
+13,10
@@
class YouTubeTask(AudioFormatTask):
def set_tags(self, audiobook, filename):
pass
def set_tags(self, audiobook, filename):
pass
+ @classmethod
+ def save(cls, audiobook, file_name):
+ """We do not save the video files."""
+ 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)