diff --git a/CustomPythonScripts/convert_heic_to_png.py b/CustomPythonScripts/convert_heic_to_png.py index 30f437b..3e722fb 100644 --- a/CustomPythonScripts/convert_heic_to_png.py +++ b/CustomPythonScripts/convert_heic_to_png.py @@ -17,12 +17,14 @@ def convert_heic_to_png(input_folder_path, output_folder_path): for filename in os.listdir(input_folder_path): if filename.lower().endswith(".heic"): input_file_path = os.path.join(input_folder_path, filename) - output_file_path = os.path.join(output_folder_path, os.path.splitext(filename)[0] + ".png") - + output_file_path = os.path.join( + output_folder_path, f"{os.path.splitext(filename)[0]}.png" + ) + try: # Constructing the ImageMagick convert command command = ["magick", input_file_path, output_file_path] - + # Executing the command subprocess.run(command, check=True) print(f"Conversion successful: {input_file_path} to {output_file_path}") diff --git a/CustomPythonScripts/music_gen_infinite_lenght.py b/CustomPythonScripts/music_gen_infinite_lenght.py index 97595af..0ce244e 100644 --- a/CustomPythonScripts/music_gen_infinite_lenght.py +++ b/CustomPythonScripts/music_gen_infinite_lenght.py @@ -190,8 +190,6 @@ def ui(**kwargs): """ ) - # Show the interface - launch_kwargs = {} username = kwargs.get('username') password = kwargs.get('password') server_port = kwargs.get('server_port', 0) @@ -199,8 +197,7 @@ def ui(**kwargs): share = kwargs.get('share', False) server_name = kwargs.get('listen') - launch_kwargs['server_name'] = server_name - + launch_kwargs = {'server_name': server_name} if username and password: launch_kwargs['auth'] = (username, password) if server_port > 0: