Compare commits

..

5 Commits

Author SHA1 Message Date
xz-dev 78ce8aabea
perf: optimize gif via gifsicle 2024-07-17 07:14:10 +08:00
xz-dev fe2d21ebce
fix: fix webm duration via ffmpeg 2024-07-17 07:14:10 +08:00
xz-dev b468f54b39
fix: support animated sticker convert(RGBA) 2024-07-17 07:14:10 +08:00
xz-dev 74cff4e863
feat: support animated(lottie) sticker 2024-07-17 07:14:05 +08:00
xz-dev 7769679ac3
feat: support animated(webm) sticker 2024-07-17 07:13:45 +08:00
1 changed files with 5 additions and 1 deletions

View File

@ -81,7 +81,11 @@ async def reupload_pack(client: TelegramClient, pack: StickerSetFull, output_dir
reuploaded_documents[document.id] = already_uploaded[document.id] reuploaded_documents[document.id] = already_uploaded[document.id]
print(f"Skipped reuploading {document.id}") print(f"Skipped reuploading {document.id}")
except KeyError: except KeyError:
try:
reuploaded_documents[document.id] = await reupload_document(client, document) reuploaded_documents[document.id] = await reupload_document(client, document)
except Exception as e:
print(f"Failed to reupload {document.id}: {e}")
continue
# Always ensure the body and telegram metadata is correct # Always ensure the body and telegram metadata is correct
add_meta(document, reuploaded_documents[document.id], pack) add_meta(document, reuploaded_documents[document.id], pack)