fnp
/
audio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Part on thumbnail.
[audio.git]
/
src
/
youtube
/
thumbnail.py
diff --git
a/src/youtube/thumbnail.py
b/src/youtube/thumbnail.py
index
745894b
..
42e8070
100644
(file)
--- a/
src/youtube/thumbnail.py
+++ b/
src/youtube/thumbnail.py
@@
-44,6
+44,8
@@
def draw_version(img, d, context, get_font_path):
if item.get('vskip'):
cursor += item['vskip']
text = item['text'].format(**context)
+ if not text:
+ continue
if item.get('uppercase'):
text = text.upper()
font = ImageFont.truetype(get_font_path(item['font-family']), item['font-size'])