Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format code. #46

Merged
merged 1 commit into from
Mar 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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, theme, user_id):
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, theme, user_id):
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, theme, user_id):
return f"cache/que{videoid}_{user_id}.png"
except Exception as e:
print(e)
return YOUTUBE_IMG_URL
return YOUTUBE_IMG_URL