2023-04-08 07:08:13 +03:00
|
|
|
import requests
|
|
|
|
import webbrowser
|
|
|
|
import json
|
2023-05-28 15:59:32 +03:00
|
|
|
import gettext
|
|
|
|
from texts import ver
|
|
|
|
|
|
|
|
|
2023-06-09 22:16:49 +03:00
|
|
|
lang = gettext.translation('locale', localedir='locale', languages=[language()])
|
2023-05-28 15:59:32 +03:00
|
|
|
lang.install()
|
|
|
|
_ = lang.gettext
|
2023-04-08 07:08:13 +03:00
|
|
|
|
|
|
|
|
|
|
|
def upd_check():
|
2023-07-13 16:31:12 +03:00
|
|
|
with open('setts.json') as json_file:
|
2023-04-08 07:08:13 +03:00
|
|
|
data = json.load(json_file)
|
|
|
|
set_theme = data["settings"]["theme"]
|
|
|
|
|
|
|
|
version_new = requests.get('https://risenhome.xyz/feed/Risen.json').json()["version"]["ver"]
|
|
|
|
version_old = ver
|
|
|
|
|
|
|
|
|