MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / save_language_preference

Function save_language_preference

Scripts/Settings.py:163–179  ·  view source on GitHub ↗

Saves the selected language to a persistent JSON file.

(language)

Source from the content-addressed store, hash-verified

161 "key": "corrupted_files", "name": "Corrupted Files Project", "repo": "dedsec1121fk/Corrupted-Files-Project",
162 "url": "https://github.com/dedsec1121fk/Corrupted-Files-Project.git",
163 "local_names": ["Corrupted-Files-Project", "Corrupted-Files-Project-main", "Corrupted Files Project"],
164 "aliases": ["corrupted files", "historical archive", "case archive"],
165 },
166 {
167 "key": "website_source", "name": "DedSec Website Source", "repo": "dedsec1121fk/dedsec1121fk.github.io",
168 "url": "https://github.com/dedsec1121fk/dedsec1121fk.github.io.git",
169 "local_names": ["dedsec1121fk.github.io", "dedsec1121fk.github.io-main", "DedSec-Website"],
170 "aliases": ["website", "ded-sec.space", "site source"],
171 },
172]
173
174# --- VPN / Tor Utilities (taken from Free Internet.py and adapted for Settings.py) ---
175NETWORK_CONFIG_PATH = os.path.join(HOME_DIR, ".dedsec_network_utilities.json")
176NETWORK_DATA_DIR = os.path.join(HOME_DIR, ".dedsec_network_utilities")
177NETWORK_PROXY_CACHE_FILE = os.path.join(NETWORK_DATA_DIR, "proxy_cache.json")
178NETWORK_PROXY_STATE_FILE = os.path.join(NETWORK_DATA_DIR, "proxy_state.json")
179NETWORK_TOR_LOG_PATH = os.path.join(NETWORK_DATA_DIR, "tor.log")
180NETWORK_TOR_DATA_DIR = os.path.join(NETWORK_DATA_DIR, "tor_data")
181NETWORK_PROXY_API = "https://api.proxyscrape.com/v3/free-proxy-list/get"
182NETWORK_PROXY_CACHE_TTL = 240

Callers 1

change_languageFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected