Skip to content

Commit cf06246

Browse files
committed
fixes for adding metadata
1 parent 0fd6a92 commit cf06246

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

ambidex.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -737,14 +737,13 @@ def download_game_cover(self, game_data, is_new_game=False, game_name=None):
737737
safe_name = utils.make_safe_filename(game_data["name"])
738738
expected_image_path = os.path.join(images_dir, f"{safe_name}.jpg")
739739

740-
# Create worker in a way that properly maintains references
741740
worker = IGDBImageDownloadWorker(self.config["igdb_auth"], game_data, images_dir)
742741

743-
# Store worker reference to prevent garbage collection issues in Nuitka builds
742+
# store worker reference to prevent garbage collection issues in nuitka builds
744743
self.current_worker = worker
745744

746745
if is_new_game:
747-
# Use a stable lambda to prevent issues in compiled code
746+
# use a stable lambda to prevent issues in builds
748747
worker.signals.image_downloaded.connect(
749748
lambda name, path, official_name: self.finalize_game_addition(path, official_name))
750749
else:
@@ -767,7 +766,7 @@ def download_game_cover(self, game_data, is_new_game=False, game_name=None):
767766
QMessageBox.warning(self, "Error", f"An unexpected error occurred: {str(e)}")
768767

769768
def image_download_finished(self, is_new_game=False, expected_image_path=None):
770-
"""Handle cleanup after image download regardless of success or failure"""
769+
"""handle cleanup after image download regardless of success or failure"""
771770
try:
772771
if is_new_game and hasattr(self, "current_game_addition") and self.current_game_addition:
773772
if not hasattr(self, "current_game_data") or not self.current_game_data:

0 commit comments

Comments
 (0)