Fix TG unzipmirror

This commit is contained in:
Hafitz Setya 2021-02-14 11:03:53 +07:00 committed by GitHub
parent a999fe00c2
commit cffd94501a
Signed by untrusted user: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -191,7 +191,7 @@ def _mirror(bot, update, isTar=False, extract=False):
if len(link) == 0:
if file is not None:
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.add_download(reply_to, f'{DOWNLOAD_DIR}{listener.uid}/')
sendStatusMessage(update, bot)