fnp
/
audio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Follow symlinks in the repository.
[audio.git]
/
src
/
youtube
/
tasks.py
diff --git
a/src/youtube/tasks.py
b/src/youtube/tasks.py
index
63051c9
..
cad3d11
100644
(file)
--- a/
src/youtube/tasks.py
+++ b/
src/youtube/tasks.py
@@
-8,7
+8,7
@@
class YouTubeTask(AudioFormatTask):
prefix = 'youtube'
def encode(self, in_paths, out_path):
prefix = 'youtube'
def encode(self, in_paths, out_path):
-
YouTube.objects.first()
.prepare_file(in_paths, out_path)
+
self.audiobook.project.youtube
.prepare_file(in_paths, out_path)
def set_tags(self, audiobook, filename):
pass
def set_tags(self, audiobook, filename):
pass
@@
-19,7
+19,7
@@
class YouTubeTask(AudioFormatTask):
os.unlink(file_name)
def put(self, user, audiobook, filename):
os.unlink(file_name)
def put(self, user, audiobook, filename):
-
YouTube.objects.first()
.publish(audiobook, filename)
+
audiobook.project.youtube
.publish(audiobook, filename)
def get_source_file_paths(self, audiobook):
if not audiobook.youtube_volume:
def get_source_file_paths(self, audiobook):
if not audiobook.youtube_volume: