fnp
/
audio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Show YouTube publishing status.
[audio.git]
/
src
/
youtube
/
thumbnail.py
diff --git
a/src/youtube/thumbnail.py
b/src/youtube/thumbnail.py
index
3f67cac
..
745894b
100644
(file)
--- a/
src/youtube/thumbnail.py
+++ b/
src/youtube/thumbnail.py
@@
-53,7
+53,7
@@
def draw_version(img, d, context, get_font_path):
realheight = draw.textsize(line, font=font)[1]
if cursor + realheight > newimg.size[1]:
return False
realheight = draw.textsize(line, font=font)[1]
if cursor + realheight > newimg.size[1]:
return False
-
print('x', draw.text((0, cursor), line, font=font, fill=item.get('color')
))
+
draw.text((0, cursor), line, font=font, fill=item.get('color'
))
cursor += item['line-height']
img.paste(newimg, (d.get('x', 0), d.get('y', 0)), newimg)
cursor += item['line-height']
img.paste(newimg, (d.get('x', 0), d.get('y', 0)), newimg)