Skip to content

Commit

Permalink
Minor fix (SilentDemonSD#48)
Browse files Browse the repository at this point in the history
Fix yt-dlp link
  • Loading branch information
OmiduSithul authored Nov 29, 2022
1 parent e4d91c0 commit 95deed1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bot/modules/ytdlp.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ def _ytdl(bot, message, isZip=False, isLeech=False):
link = args[index].strip()
if link.startswith(("|", "pswd:", "opt:")):
link = ''
else:
link = re_split(r"opt:|pswd:|\|", link)[0]
link = link.strip()

name = mssg.split('|', maxsplit=1)
if len(name) > 1:
Expand Down Expand Up @@ -379,4 +382,4 @@ def ytdlZipleech(update, context):
dispatcher.add_handler(ytdl_zip_handler)
dispatcher.add_handler(ytdl_leech_handler)
dispatcher.add_handler(ytdl_zip_leech_handler)
dispatcher.add_handler(quality_handler)
dispatcher.add_handler(quality_handler)

0 comments on commit 95deed1

Please sign in to comment.