This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 2023-05-10 | |
| # edit 2025-06-12 | |
| import sys, json | |
| from resources.lib import control | |
| params = dict(control.parse_qsl(control.urlsplit(sys.argv[2]).query)) | |
| action = params.get('action') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| # Python 3 | |
| from resources.lib.tools import cParser, cUtil | |
| from resources.lib.config import cConfig | |
| from xbmc import LOGERROR, log | |
| from os import path | |
| class cGuiElement: | |
| ''' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os.path | |
| import importlib | |
| import importlib.util | |
| import pkgutil | |
| from resources.lib import log_utils | |
| try: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # reset Internet-Connection on fritz.box to get a new public IP: | |
| cls | |
| Remove-Variable * -ea 0 | |
| Add-Type -AssemblyName System.Net.Http | |
| $handler = [System.Net.Http.HttpClientHandler]::new() | |
| $ignoreCerts = [System.Net.Http.HttpClientHandler]::DangerousAcceptAnyServerCertificateValidator | |
| $handler.ServerCertificateCustomValidationCallback = $ignoreCerts | |
| $client = [System.Net.Http.HttpClient]::new($handler) |