Skip to content

Commit

Permalink
Don't +1 +1
Browse files Browse the repository at this point in the history
Since +1 is fixed in prep.screenshots, there's no longer a need to increment the call to prep.
  • Loading branch information
Audionut committed Dec 13, 2024
1 parent 120cf74 commit bbf9c7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/trackers/COMMON.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ async def unit3d_edit_desc(self, meta, tracker, signature, comparison=False, des
if not new_screens:
if meta['debug']:
console.print(f"[yellow]No existing screenshots for {new_images_key}; generating new ones.")
s = multiprocessing.Process(target=prep.screenshots, args=(file, f"FILE_{i}", meta['uuid'], meta['base_dir'], meta, multi_screens + 1, True, None))
s = multiprocessing.Process(target=prep.screenshots, args=(file, f"FILE_{i}", meta['uuid'], meta['base_dir'], meta, multi_screens, True, None))
s.start()
while s.is_alive():
await asyncio.sleep(1)
Expand Down
2 changes: 1 addition & 1 deletion src/trackers/PTP.py
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ async def edit_desc(self, meta):
meta[new_images_key] = []
new_screens = glob.glob1(f"{meta['base_dir']}/tmp/{meta['uuid']}", f"FILE_{i}-*.png")
if not new_screens:
s = multiprocessing.Process(target=prep.screenshots, args=(file, f"FILE_{i}", meta['uuid'], meta['base_dir'], meta, multi_screens + 1, True, None))
s = multiprocessing.Process(target=prep.screenshots, args=(file, f"FILE_{i}", meta['uuid'], meta['base_dir'], meta, multi_screens, True, None))
s.start()
while s.is_alive() is True:
await asyncio.sleep(3)
Expand Down

0 comments on commit bbf9c7b

Please sign in to comment.