fnp
/
audio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Disable youtube publish button when in volume.
[audio.git]
/
src
/
youtube
/
models.py
diff --git
a/src/youtube/models.py
b/src/youtube/models.py
index
b1abda9
..
5fe3c2b
100644
(file)
--- a/
src/youtube/models.py
+++ b/
src/youtube/models.py
@@
-191,7
+191,7
@@
class YouTube(models.Model):
{
"author": ', '.join((a['name'] for a in audiobook.book['authors'])),
"title": audiobook.book['title'],
{
"author": ', '.join((a['name'] for a in audiobook.book['authors'])),
"title": audiobook.book['title'],
- "part":
audiobook.youtube_volume or audiobook.part_name
,
+ "part":
(audiobook.youtube_volume or audiobook.part_name).strip()
,
},
lambda name: Font.objects.get(name=name).truetype.path
)
},
lambda name: Font.objects.get(name=name).truetype.path
)