Skip to content

Commit

Permalink
Update callback.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Vivekkumar-IN authored Aug 8, 2024
1 parent 2f6b29e commit 6a9b9f6
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions BrandrdXMusic/plugins/admins/callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from pyrogram import filters
from pyrogram.types import InlineKeyboardButton, InlineKeyboardMarkup

from BrandrdXMusic import YouTube, app
from BrandrdXMusic import YouTube, app, YTB
from BrandrdXMusic.core.call import Hotty
from BrandrdXMusic.misc import SUDOERS, db
from BrandrdXMusic.utils.database import (
Expand Down Expand Up @@ -257,8 +257,16 @@ async def del_back_playlist(client, CallbackQuery, _):
videoid=True,
video=status,
)
except:
return await mystic.edit_text(_["call_6"])
except:
try:
file_path, direct = await YTB.download(
videoid,
mystic,
videoid=True,
video=status,
)
except:
return await mystic.edit_text(_["call_6"])
try:
image = await YouTube.thumbnail(videoid, True)
except:
Expand Down

0 comments on commit 6a9b9f6

Please sign in to comment.