Fix TG unzipmirror
This commit is contained in:
parent
a999fe00c2
commit
cffd94501a
|
|
@ -191,7 +191,7 @@ def _mirror(bot, update, isTar=False, extract=False):
|
||||||
if len(link) == 0:
|
if len(link) == 0:
|
||||||
if file is not None:
|
if file is not None:
|
||||||
if file.mime_type != "application/x-bittorrent":
|
if file.mime_type != "application/x-bittorrent":
|
||||||
listener = MirrorListener(bot, update, isTar, tag)
|
listener = MirrorListener(bot, update, isTar, tag, extract)
|
||||||
tg_downloader = TelegramDownloadHelper(listener)
|
tg_downloader = TelegramDownloadHelper(listener)
|
||||||
tg_downloader.add_download(reply_to, f'{DOWNLOAD_DIR}{listener.uid}/')
|
tg_downloader.add_download(reply_to, f'{DOWNLOAD_DIR}{listener.uid}/')
|
||||||
sendStatusMessage(update, bot)
|
sendStatusMessage(update, bot)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue