Compare commits
5 Commits
78ce8aabea
...
47a98ba81b
Author | SHA1 | Date |
---|---|---|
xz-dev | 47a98ba81b | |
xz-dev | e38090e952 | |
xz-dev | a6b8c09379 | |
xz-dev | be477874e3 | |
xz-dev | 715f62af58 |
|
@ -81,11 +81,7 @@ 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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue