Move saved pack print
This commit is contained in:
parent
b5f37da639
commit
3876e13d4d
@ -179,6 +179,7 @@ async def reupload_pack(client: TelegramClient, pack: StickerSetFull) -> None:
|
|||||||
"hash": pack.set.hash,
|
"hash": pack.set.hash,
|
||||||
"stickers": list(reuploaded_documents.values()),
|
"stickers": list(reuploaded_documents.values()),
|
||||||
}, pack_file, ensure_ascii=False)
|
}, pack_file, ensure_ascii=False)
|
||||||
|
print(f"Saved {pack.set.title} as {pack.set.short_name}.json")
|
||||||
|
|
||||||
add_to_index(os.path.basename(pack_path))
|
add_to_index(os.path.basename(pack_path))
|
||||||
|
|
||||||
@ -211,7 +212,6 @@ async def main():
|
|||||||
for input_pack in input_packs:
|
for input_pack in input_packs:
|
||||||
pack: StickerSetFull = await client(GetStickerSetRequest(input_pack))
|
pack: StickerSetFull = await client(GetStickerSetRequest(input_pack))
|
||||||
await reupload_pack(client, pack)
|
await reupload_pack(client, pack)
|
||||||
print(f"Saved {pack.set.title} as {pack.set.short_name}.json")
|
|
||||||
else:
|
else:
|
||||||
parser.print_help()
|
parser.print_help()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user