mirror of
https://github.com/anasty17/mirror-leech-telegram-bot.git
synced 2025-01-09 04:47:34 +08:00
fixes for bulk
- fix start and end - fix same dir feature Signed-off-by: anasty17 <e.anastayyar@gmail.com>
This commit is contained in:
parent
3612b7c91f
commit
f506be4ef8
@ -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:
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user