1 from archive.tasks import AudioFormatTask
2 from .models import YouTube
5 class YouTubeTask(AudioFormatTask):
9 def encode(self, in_path, out_path):
10 YouTube.objects.first().prepare_file(in_path, out_path)
12 def set_tags(self, audiobook, filename):
15 def put(self, user, audiobook, filename):
16 YouTube.objects.first().publish(audiobook, filename)