Remove config from readme, bump to 0.2.5

This commit is contained in:
2020-06-30 19:58:06 +01:00
parent 8e94f04d5a
commit 0bb54d1c45
6 changed files with 18 additions and 136 deletions

View File

@@ -3,7 +3,7 @@ import json
from pathlib import Path
def generate_ini(base_file, ini_file):
def generate_ini(base_file, ini_file, version):
"""
Generates .ini file from config-base file.
"""
@@ -25,6 +25,11 @@ def generate_ini(base_file, ini_file):
value = str(value)
ini.set(section, entry, value)
ini["jellyfin"]["version"] = version
ini["jellyfin"]["device_id"] = ini["jellyfin"]["device_id"].replace(
"{version}", version
)
with open(Path(ini_file), "w") as config_file:
ini.write(config_file)
return True