This commit is contained in:
Евгений Храмов 2023-05-14 17:24:15 +03:00
parent 8e57135ccf
commit e9c34f6419

@ -479,7 +479,7 @@ def modextract(id_mod, id_game_workshop):
print("[x] Unpacking .z files failed, aborting mod install")
return False
os.system(f"mv {dir_steam_workshop} {dir_mods_ark}")
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')
modname = re.search(r'<div class="workshopItemTitle">(.+)</div>', modname)