From 419eaef449c56f778c560ad7533e42da37792c04 Mon Sep 17 00:00:00 2001 From: msramalho <19508417+msramalho@users.noreply.github.com> Date: Fri, 28 Jul 2023 12:50:52 +0100 Subject: [PATCH] fixes unsued tmp_dir --- src/auto_archiver/archivers/telegram_archiver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/auto_archiver/archivers/telegram_archiver.py b/src/auto_archiver/archivers/telegram_archiver.py index ed57927..f93c66a 100644 --- a/src/auto_archiver/archivers/telegram_archiver.py +++ b/src/auto_archiver/archivers/telegram_archiver.py @@ -53,10 +53,10 @@ class TelegramArchiver(Archiver): if not len(image_urls): return False for img_url in image_urls: - result.add_media(Media(self.download_from_url(img_url))) + result.add_media(Media(self.download_from_url(img_url, item=item))) else: video_url = video.get('src') - m_video = Media(self.download_from_url(video_url)) + m_video = Media(self.download_from_url(video_url, item=item)) # extract duration from HTML try: duration = s.find_all('time')[0].contents[0]