fnp
/
audio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new fields: part name, index, parts count
[audio.git]
/
apps
/
archive
/
tasks.py
diff --git
a/apps/archive/tasks.py
b/apps/archive/tasks.py
index
d9c3f5e
..
a46b79c
100644
(file)
--- a/
apps/archive/tasks.py
+++ b/
apps/archive/tasks.py
@@
-81,10
+81,13
@@
class AudioFormatTask(Task):
tags = getattr(audiobook, "%s_tags" % cls.ext)
prefix, slug = tags['url'].rstrip('/').rsplit('/', 1)
name = tags['name']
tags = getattr(audiobook, "%s_tags" % cls.ext)
prefix, slug = tags['url'].rstrip('/').rsplit('/', 1)
name = tags['name']
- command = UPLOAD_CMD + (u' %s %s %s > output.txt' % (
+ command = UPLOAD_CMD + (u' %s %s %s
%s %s %s
> output.txt' % (
pipes.quote(os.path.join(UPLOAD_PATH, os.path.basename(path))),
pipes.quote(slug),
pipes.quote(os.path.join(UPLOAD_PATH, os.path.basename(path))),
pipes.quote(slug),
- pipes.quote(name)
+ pipes.quote(name),
+ pipes.quote(audiobook.part_name),
+ audiobook.index,
+ audiobook.parts_count,
)).encode('utf-8')
try:
api.put(path, UPLOAD_PATH)
)).encode('utf-8')
try:
api.put(path, UPLOAD_PATH)