fnp
/
audio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3c7adf8
)
Omit part name on yt thumbnail if only one part.
author
Radek Czajka
<rczajka@rczajka.pl>
Fri, 25 Jun 2021 14:10:03 +0000
(16:10 +0200)
committer
Radek Czajka
<rczajka@rczajka.pl>
Fri, 25 Jun 2021 14:10:03 +0000
(16:10 +0200)
src/youtube/models.py
patch
|
blob
|
history
diff --git
a/src/youtube/models.py
b/src/youtube/models.py
index
76a02b9
..
35899b6
100644
(file)
--- a/
src/youtube/models.py
+++ b/
src/youtube/models.py
@@
-243,7
+243,7
@@
class ThumbnailTemplate(models.Model):
{
"author": ', '.join((a['name'] for a in audiobook.book['authors'])),
"title": title,
{
"author": ', '.join((a['name'] for a in audiobook.book['authors'])),
"title": title,
- "part": (audiobook.youtube_volume or audiobook.part_name).strip(),
+ "part": (audiobook.youtube_volume or audiobook.part_name).strip()
if audiobook.youtube_volume_count > 1 else ''
,
},
lambda name: Font.objects.get(name=name).truetype.path
)
},
lambda name: Font.objects.get(name=name).truetype.path
)