mirror of
https://github.com/hrfee/jellyfin-accounts.git
synced 2026-06-25 04:41:42 +00:00
Remove config from readme, bump to 0.2.5
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user