X-Git-Url: https://git.mdrn.pl/audio.git/blobdiff_plain/651c3fcf0e96681e5dfeb5afbbc4900a9342beb3..4a8e96ac1f0a7c451d6d8ec28c773d2df76bb086:/src/youtube/tasks.py?ds=sidebyside diff --git a/src/youtube/tasks.py b/src/youtube/tasks.py index 0c3298a..32e41b7 100644 --- 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 @@ -15,7 +16,7 @@ class YouTubeTask(AudioFormatTask): @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)