From 39ad19f908b46f936f64fdfadd474465248ec6ca Mon Sep 17 00:00:00 2001 From: Audionut Date: Mon, 28 Oct 2024 00:03:16 +1000 Subject: [PATCH] Upload does not need plus 1 --- src/trackers/PTP.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/trackers/PTP.py b/src/trackers/PTP.py index 93b75524..f108a9c8 100644 --- a/src/trackers/PTP.py +++ b/src/trackers/PTP.py @@ -704,7 +704,7 @@ async def edit_desc(self, meta): await asyncio.sleep(3) new_screens = glob.glob1(f"{meta['base_dir']}/tmp/{meta['uuid']}", f"FILE_{i}-*.png") if new_screens: - uploaded_images, _ = prep.upload_screens(meta, multi_screens + 1, 1, 0, 2, new_screens, {}) + uploaded_images, _ = prep.upload_screens(meta, multi_screens, 1, 0, 2, new_screens, {}) for img in uploaded_images[:int(meta['screens'])]: raw_url = img['raw_url'] desc.write(f"[img]{raw_url}[/img]\n")