Compare commits

...

2 Commits

2 changed files with 6 additions and 3 deletions

View File

@ -31,7 +31,7 @@ AudioFormat = ogg
Order = relevance
# Choose if you want to play vocal or instrumental music: vocal, instrumental (remove setting if not relevant)
VocalInstrumental = instrumental
;VocalInstrumental = instrumental
# Set the speed of music you like: verylow, low, medium, high, veryhigh (remove setting if not relevant)
;Speed = low
;Speed = low

View File

@ -1,4 +1,5 @@
import os
from lib.renderer import Renderer
from PIL import Image, ImageDraw, ImageFont, ImageFile
@ -41,4 +42,6 @@ class PNG_Renderer(Renderer):
draw.text((text_x,artist_y), artist, font=artist_font, fill='#' + self._config['TitleFontColor'])
draw.text((text_x,album_y), album, font=album_font, fill='#' + self._config['TitleFontColor'])
image.save(self._config['OutputPath'])
# Write file and then move it in position
image.save(self._config['OutputPath'] + '.part', 'PNG')
os.replace(self._config['OutputPath'] + '.part', self._config['OutputPath'])