Skip to content

Commit

Permalink
fix yt-dlp mirror/leech along wiht cmd
Browse files Browse the repository at this point in the history
Signed-off-by: mltb <[email protected]>
  • Loading branch information
mltb committed Mar 4, 2023
1 parent 39a08e9 commit 59b8cff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bot/modules/mirror_leech.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ async def __run_multi():
name = mesg[0].split(' n: ', 1)
name = name[1].split(' pswd: ')[0].strip() if len(name) > 1 else ''

pswd = mesg[0].split(' pswd:', 1)
pswd = mesg[0].split(' pswd: ', 1)
pswd = pswd[1].split(' n: ')[0] if len(pswd) > 1 else None

if len(mesg) > 1 and mesg[1].startswith('Tag: '):
Expand Down
2 changes: 1 addition & 1 deletion bot/modules/ytdlp.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ async def _ytdl(client, message, isZip=False, isLeech=False, sameDir={}):

args = mssg.split(maxsplit=3)
args.pop(0)
if len(args) > 1:
if len(args) > 0:
for x in args:
x = x.strip()
if x == 's':
Expand Down

0 comments on commit 59b8cff

Please sign in to comment.