fixed weird issue by forcing RGB vid thumbnail

This commit is contained in:
simon 2021-09-14 18:27:38 +07:00
parent 7f6732422b
commit 227183189c

View File

@ -125,7 +125,7 @@ class SearchHandler:
new_height = width / 16 * 9 new_height = width / 16 * 9
offset = (height - new_height) / 2 offset = (height - new_height) / 2
img = img.crop((0, offset, width, height - offset)) img = img.crop((0, offset, width, height - offset))
img.save(cache_path) img.convert("RGB").save(cache_path)
def cache_dl_chan(self, all_channels): def cache_dl_chan(self, all_channels):
""" download channel thumbs """ """ download channel thumbs """