pull/40/head
msramalho 2022-06-15 17:04:56 +02:00
rodzic 2dbdf9b8d3
commit 5cc21fa4e0
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -53,7 +53,6 @@ class TelegramArchiver(Archiver):
key = self.get_key(video_id)
filename = os.path.join(Storage.TMP_FOLDER, key)
cdn_url = self.storage.get_cdn_url(key)
if check_if_exists and self.storage.exists(key):
status = 'already archived'
@ -84,5 +83,6 @@ class TelegramArchiver(Archiver):
filename, key, duration=duration)
os.remove(filename)
cdn_url = self.storage.get_cdn_url(key)
return ArchiveResult(status=status, cdn_url=cdn_url, thumbnail=key_thumb, thumbnail_index=thumb_index,
duration=duration, title=original_url, timestamp=s.find_all('time')[1].get('datetime'), hash=hash, screenshot=screenshot)