diff --git a/hlna.py b/hlna.py index 0a4a7d3..6824dfc 100755 --- a/hlna.py +++ b/hlna.py @@ -496,7 +496,7 @@ def modextract(id_mod, id_game_workshop, dir_ark_mods): os.system(f"mv -f {dir_steam_workshop} {dir_ark_mods}") modname = subprocess.check_output( - ['curl', '-s', 'https://steamcommunity.com/sharedfiles/filedetails/?id={}'.format(id_mod)]).decode('utf-8') + ['curl', '-s', f'https://steamcommunity.com/sharedfiles/filedetails/?id={id_mod}']).decode('utf-8') modname = re.search(r'
(.+)
', modname) modname = modname and modname.group(1) @@ -515,7 +515,7 @@ def modextract(id_mod, id_game_workshop, dir_ark_mods): modpath = b"../../../" + dir_shooter.encode() + b"/Content/Mods/" + id_mod.encode() + b'\x00' modpathlen = len(modpath) with open(f"{dir_ark_mods}.mod", "wb") as mod: - mod.write(struct.pack('