Skip to content

Commit

Permalink
Upload does not need plus 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Audionut committed Oct 27, 2024
1 parent ccd695b commit 39ad19f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/trackers/PTP.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 39ad19f

Please sign in to comment.