Skip to content

Commit

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

import config
from BrandrdXMusic import YouTube, app
from BrandrdXMusic import YouTube, app, YTB
from BrandrdXMusic.core.call import Hotty
from BrandrdXMusic.misc import db
from BrandrdXMusic.utils.database import get_loop
Expand Down Expand Up @@ -138,7 +138,15 @@ async def skip(cli, message: Message, _, chat_id):
video=status,
)
except:
return await mystic.edit_text(_["call_6"])
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 3d4a766

Please sign in to comment.