Skip to content

Commit

Permalink
Merge pull request #45 from TheTeamAlexa/autofix
Browse files Browse the repository at this point in the history
Format code.
  • Loading branch information
TheTeamAlexa committed Mar 6, 2023
2 parents d1bbef1 + b489e15 commit 49e4b53
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
1 change: 0 additions & 1 deletion AlexaMusic/plugins/admins/skip.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
# All rights reserved. © Alisha © Alexa © Yukki



from pyrogram import filters
from pyrogram.types import InlineKeyboardMarkup, Message

Expand Down
5 changes: 2 additions & 3 deletions AlexaMusic/utils/stream/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
music_on,
)
from AlexaMusic.utils.exceptions import AssistantErr
from AlexaMusic.utils.inline.play import (stream_markup, queue_markup,
telegram_markup)
from AlexaMusic.utils.inline.play import stream_markup, queue_markup, telegram_markup
from AlexaMusic.utils.inline.playlist import close_markup
from AlexaMusic.utils.pastebin import Alexabin
from AlexaMusic.utils.stream.queue import put_queue, put_queue_index
Expand Down Expand Up @@ -178,7 +177,7 @@ async def stream(
position, title[:27], duration_min, user_name
),
reply_markup=InlineKeyboardMarkup(button),
disable_web_page_preview=True
disable_web_page_preview=True,
)
else:
if not forceplay:
Expand Down
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

0 comments on commit 49e4b53

Please sign in to comment.