diff --git a/src/main/events/profile/process-profile-image.ts b/src/main/events/profile/process-profile-image.ts index 50659227..f6d68088 100644 --- a/src/main/events/profile/process-profile-image.ts +++ b/src/main/events/profile/process-profile-image.ts @@ -5,7 +5,7 @@ const processProfileImage = async ( _event: Electron.IpcMainInvokeEvent, path: string ) => { - return await PythonInstance.processProfileImage(path); + return PythonInstance.processProfileImage(path); }; registerEvent("processProfileImage", processProfileImage); diff --git a/torrent-client/profile_image_processor.py b/torrent-client/profile_image_processor.py index 7d4976db..3a565aef 100644 --- a/torrent-client/profile_image_processor.py +++ b/torrent-client/profile_image_processor.py @@ -29,11 +29,3 @@ class ProfileImageProcessor: @staticmethod def process_image(image_path): return ProfileImageProcessor.get_parsed_image_data(image_path) - - -if __name__ == "__main__": - result = ProfileImageProcessor.get_parsed_image_data("D:\Imagens\807b5c4b02e765bb4930b7c66662ef4b.gif") - print(result) - - result = ProfileImageProcessor.get_parsed_image_data("D:/Imagens/20240416_233352~2.png") - print(result) \ No newline at end of file