From 05f9126b0d7cbf38b3e1abaeccd0b2b7a04efbb7 Mon Sep 17 00:00:00 2001 From: xpamych Date: Sun, 14 May 2023 22:54:17 +0300 Subject: [PATCH] =?UTF-8?q?=D1=83=D1=81=D1=82=D0=B0=D0=BD=D0=BE=D0=B2?= =?UTF-8?q?=D0=BA=D0=B0=20=D0=B8=20=D1=83=D0=B4=D0=B0=D0=BB=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=BC=D0=BE=D0=B4=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hlna.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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('