Skip to content

Commit

Permalink
[ FiX ]
Browse files Browse the repository at this point in the history
  • Loading branch information
AsmSafone committed Sep 30, 2021
1 parent 93d6d35 commit 8d66f9f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion plugins/callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ async def cb_handler(client: Client, query: CallbackQuery):
else:
title=f"▶️ <b>Streaming [Startup Stream]({Config.STREAM_URL}) !</b>"
try:
await query.message.edit_message_text(f"{title}",
await query.edit_message_text(f"{title}",
reply_markup=await get_buttons()
)
except MessageNotModified:
Expand Down
8 changes: 4 additions & 4 deletions plugins/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ async def add_to_playlist(_, message: Message):
user=f"[{message.from_user.first_name}](tg://user?id={message.from_user.id})"
if type=="video":
now = datetime.now()
nyav = now.strftime("%d-%m-%Y-%H:%M:%S")
data={1:m_video.file_name, 2:m_video.file_id, 3:"telegram", 4:user, 5:f"{nyav}_{m_video.file_size}"}
lel = now.strftime("%d-%m-%Y-%H:%M:%S")
data={1:m_video.file_name, 2:m_video.file_id, 3:"telegram", 4:user, 5:f"{lel}_{m_video.file_size}"}
Config.playlist.append(data)
await msg.edit("➕ **Media Added To Playlist !**")
if type=="youtube" or type=="query":
Expand Down Expand Up @@ -122,8 +122,8 @@ async def add_to_playlist(_, message: Message):
return
title = info["title"]
now = datetime.now()
nyav = now.strftime("%d-%m-%Y-%H:%M:%S")
data={1:title, 2:url, 3:"youtube", 4:user, 5:f"{nyav}_{message.from_user.id}"}
lel = now.strftime("%d-%m-%Y-%H:%M:%S")
data={1:title, 2:url, 3:"youtube", 4:user, 5:f"{lel}_{message.from_user.id}"}
Config.playlist.append(data)
await msg.edit(f"➕ **[{title}]({url}) Added To Playlist !**", disable_web_page_preview=True)
if len(Config.playlist) == 1:
Expand Down

0 comments on commit 8d66f9f

Please # to comment.