fixes for bulk

- fix start and end
- fix same dir feature

Signed-off-by: anasty17 <e.anastayyar@gmail.com>
This commit is contained in:
anasty17 2023-05-23 15:07:33 +03:00
parent 3612b7c91f
commit f506be4ef8
2 changed files with 6 additions and 4 deletions

View File

@ -68,6 +68,7 @@ async def _mirror_leech(client, message, isZip=False, extract=False, isQbit=Fals
index += 1
elif x.startswith('m:'):
marg = x.split('m:', 1)
index += 1
if len(marg) > 1:
folder_name = f"/{marg[1]}"
if not sameDir:
@ -82,9 +83,9 @@ async def _mirror_leech(client, message, isZip=False, extract=False, isQbit=Fals
bi = index
index += 1
dargs = x.split(':')
bulk_start = dargs[1] or 0
bulk_start = int(dargs[1]) or 0
if len(dargs) == 3:
bulk_end = dargs[2] or 0
bulk_end = int(dargs[2]) or 0
else:
break
if multi == 0 or len(bulk) != 0:

View File

@ -266,6 +266,7 @@ async def _ytdl(client, message, isZip=False, isLeech=False, sameDir={}, bulk=[]
index += 1
elif x.startswith('m:'):
marg = x.split('m:', 1)
index += 1
if len(marg) > 1:
folder_name = f'/{marg[1]}'
if not sameDir:
@ -280,9 +281,9 @@ async def _ytdl(client, message, isZip=False, isLeech=False, sameDir={}, bulk=[]
bi = index
index += 1
dargs = x.split(':')
bulk_start = dargs[1] or 0
bulk_start = int(dargs[1]) or 0
if len(dargs) == 3:
bulk_end = dargs[2] or 0
bulk_end = int(dargs[2]) or 0
else:
break
if multi == 0 or len(bulk) != 0: