Skip to content

Commit

Permalink
Formate By @TheTeamAlexa
Browse files Browse the repository at this point in the history
Signed-off-by: TheTeamAlexa <TheTeamAlexa@users.noreply.github.com>
  • Loading branch information
TheTeamAlexa committed Mar 6, 2023
1 parent 1509781 commit 082d03d
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions AlexaMusic/utils/thumbnails.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,15 @@ async def gen_thumb(videoid, user_id, theme):
stroke_fill="black",
font=font,
)
text_w, text_h = draw.textsize(f"Alexa Music One Of The Most Advanced Telegram Music Bot", font=arial)
text_w, text_h = draw.textsize(
f"Alexa Music One Of The Most Advanced Telegram Music Bot", font=arial
)
draw.text(
((1280 - text_w) / 2, 80),
f"Alexa Music One Of The Most Advanced Telegram Music Bot",
fill="white",
font=arial,
)
)
if para[0]:
text_w, text_h = draw.textsize(f"{para[0]}", font=font)
draw.text(
Expand Down Expand Up @@ -301,7 +303,9 @@ async def gen_qthumb(videoid, user_id, theme):
stroke_fill="black",
font=font,
)
text_w, text_h = draw.textsize(f"Alexa Music One Of The Most Advanced Telegram Music Bot", font=arial)
text_w, text_h = draw.textsize(
f"Alexa Music One Of The Most Advanced Telegram Music Bot", font=arial
)
draw.text(
((1280 - text_w) / 2, 80),
f"Alexa Music One Of The Most Advanced Telegram Music Bot",
Expand Down Expand Up @@ -354,4 +358,4 @@ async def gen_qthumb(videoid, user_id, theme):
return f"cache/que{videoid}_{user_id}.png"
except Exception as e:
print(e)
return YOUTUBE_IMG_URL
return YOUTUBE_IMG_URL

0 comments on commit 082d03d

Please sign in to comment.