This commit is contained in:
Евгений Храмов 2023-05-14 17:39:26 +03:00
parent 72e39bc580
commit 55b967f3d7

@ -485,8 +485,8 @@ def modextract(id_mod, id_game_workshop):
modname = re.search(r'<div class="workshopItemTitle">(.+)</div>', modname) modname = re.search(r'<div class="workshopItemTitle">(.+)</div>', modname)
modname = modname and modname.group(1) modname = modname and modname.group(1)
if os.path.isfile(f"{dir_extract}/.mod"): if os.path.isfile(f"{dir_ark_mods}/{id_mod}.mod"):
os.remove(f"{dir_extract}/.mod") os.remove(f"{dir_ark_mods}/{id_mod}.mod")
modfile_bytes = b'' modfile_bytes = b''
with open(os.path.join(dir_ark_mods, 'mod.info'), 'rb') as f: with open(os.path.join(dir_ark_mods, 'mod.info'), 'rb') as f: