# Path: resources/lib/constants.py
# class HTTP:
#     TIMEOUT = 10
#     GET = 'get'
#     POST = 'post'
#     HEAD = 'head'
#     OPTION = 'option'
#     PUT = 'put'
#     DELETE = 'delete'
#     PATCH = 'patch'
# 
# Path: resources/lib/kodiutils.py
# def encode(s, encoding='utf-8', errors='strict'):
# def decode(s, encoding='utf-8', errors='strict'):
# def translate_path(path):
# def get_setting(key):
# def set_setting(key, val):
# def set_setting_as_bool(key, val):
# def get_setting_as_bool(key):
# def get_setting_as_int(key):
# def get_system_debug():
# def set_system_debug(new_val):
# def set_update_addons(new_val):
# def set_general_addonupdates(new_val):
# def get_app_name():
# def get_info_label(str):
# def get_kodi_version():
# def get_screen_width():
# def get_screen_height():
# def get_os_version():
# def sleep(sleep_time):
# def get_il():
# def get_system_platform():
# def get_uuid():
# def _get_system_uuid():
# def _get_windows_uuid():
# def _get_linux_uuid():
# def _get_android_uuid():
# def _get_macos_uuid():
# def _parse_osx_xml_plist_data(data):
# def _get_fake_uuid():
# def params(url):
# def exec_build_in(cmd):
# def container_refresh():
# def container_update(url, replace=False):
# def run_plugin(url):
# def get_skin_name():
# def hexlify(value):
# def create_plugin_url(param):
# def make_table(matrix):
# def upnext_signal(sender, next_info):
# def notify(sender, message, data):
# def jsonrpc(**kwargs):
# def convert_bitrate(mbit, with_text=True):
# def kodi_file(path):
# def open_settings(query=None, id=ADDON_ID):
# def validate_path(path):
# def make_legal_filename(path):
# def microtime():
# def get_percentage(val, total):
# def mkdir(path):
# def file_exists(path):
# def make_nfo_content(item, typ='movie'):
# def update_addon():
# def download(url, dest, name):
# def convert_bitrate(mbit, with_text=True):
# def get_isp():
# def isp_ipinfo():
# def isp_call(url, ref):
# def isp_ipapi():
# def isp_dbip():
# def isp_ipgeolocationioapi():
# def clean_textures():
# def check_set_debug(toggle=False):
# def upload_log_file(name=None):
# def copy2clip(txt):
# __CRYPT_KEY__ = None
#         __CRYPT_KEY__ = _get_system_uuid()
# 
# Path: resources/lib/language.py
# def get_language_code():
#     return xbmc.getLanguage(xbmc.ISO_639_1)
# 
# Path: resources/lib/common/logger.py
# def info(text):
#     xbmc.log('[{}] {}'.format(APP, text), xbmc.LOGINFO)
# 
# def debug(text):
#     xbmc.log('[{}] {}'.format(APP, text), xbmc.LOGDEBUG)


import requests
import xbmc
from resources.lib.constants import HTTP
from resources.lib.kodiutils import get_system_platform, get_app_name, addon
from resources.lib.language import get_language_code
from resources.lib.common.logger import info, debug
        debug('Http url: {}'.format(ret.url))
        try:
            ret.raise_for_status()
        except requests.exceptions.HTTPError as e:
            ret = e.response

        return ret

    @staticmethod
    def req():
        return requests

    @staticmethod
    def get(url, **kwargs):
        return Http.request(HTTP.GET, url, **kwargs)

    @staticmethod
    def post(url, **kwargs):
        return Http.request(HTTP.POST, url, **kwargs)

    @staticmethod
    def head(url, **kwargs):
        return Http.request(HTTP.HEAD, url, **kwargs)

    @staticmethod
    def delete(url, **kwargs):
        return Http.request(HTTP.DELETE, url, **kwargs)

    @staticmethod
    def put(url, **kwargs):

# Path: resources/lib/constants.py
# class HTTP:
#     TIMEOUT = 10
#     GET = 'get'
#     POST = 'post'
#     HEAD = 'head'
#     OPTION = 'option'
#     PUT = 'put'
#     DELETE = 'delete'
#     PATCH = 'patch'
# 
# Path: resources/lib/kodiutils.py
# def encode(s, encoding='utf-8', errors='strict'):
# def decode(s, encoding='utf-8', errors='strict'):
# def translate_path(path):
# def get_setting(key):
# def set_setting(key, val):
# def set_setting_as_bool(key, val):
# def get_setting_as_bool(key):
# def get_setting_as_int(key):
# def get_system_debug():
# def set_system_debug(new_val):
# def set_update_addons(new_val):
# def set_general_addonupdates(new_val):
# def get_app_name():
# def get_info_label(str):
# def get_kodi_version():
# def get_screen_width():
# def get_screen_height():
# def get_os_version():
# def sleep(sleep_time):
# def get_il():
# def get_system_platform():
# def get_uuid():
# def _get_system_uuid():
# def _get_windows_uuid():
# def _get_linux_uuid():
# def _get_android_uuid():
# def _get_macos_uuid():
# def _parse_osx_xml_plist_data(data):
# def _get_fake_uuid():
# def params(url):
# def exec_build_in(cmd):
# def container_refresh():
# def container_update(url, replace=False):
# def run_plugin(url):
# def get_skin_name():
# def hexlify(value):
# def create_plugin_url(param):
# def make_table(matrix):
# def upnext_signal(sender, next_info):
# def notify(sender, message, data):
# def jsonrpc(**kwargs):
# def convert_bitrate(mbit, with_text=True):
# def kodi_file(path):
# def open_settings(query=None, id=ADDON_ID):
# def validate_path(path):
# def make_legal_filename(path):
# def microtime():
# def get_percentage(val, total):
# def mkdir(path):
# def file_exists(path):
# def make_nfo_content(item, typ='movie'):
# def update_addon():
# def download(url, dest, name):
# def convert_bitrate(mbit, with_text=True):
# def get_isp():
# def isp_ipinfo():
# def isp_call(url, ref):
# def isp_ipapi():
# def isp_dbip():
# def isp_ipgeolocationioapi():
# def clean_textures():
# def check_set_debug(toggle=False):
# def upload_log_file(name=None):
# def copy2clip(txt):
# __CRYPT_KEY__ = None
#         __CRYPT_KEY__ = _get_system_uuid()
# 
# Path: resources/lib/language.py
# def get_language_code():
#     return xbmc.getLanguage(xbmc.ISO_639_1)
# 
# Path: resources/lib/common/logger.py
# def info(text):
#     xbmc.log('[{}] {}'.format(APP, text), xbmc.LOGINFO)
# 
# def debug(text):
#     xbmc.log('[{}] {}'.format(APP, text), xbmc.LOGDEBUG)


# Path: resources/lib/system.py
import requests
import xbmc
from resources.lib.constants import HTTP
from resources.lib.kodiutils import get_system_platform, get_app_name, addon
from resources.lib.language import get_language_code
from resources.lib.common.logger import info, debug

        debug('Http url: {}'.format(ret.url))
        try:
            ret.raise_for_status()
        except requests.exceptions.HTTPError as e:
            ret = e.response

        return ret

    @staticmethod
    def req():
        return requests

    @staticmethod
    def get(url, **kwargs):
        return Http.request(HTTP.GET, url, **kwargs)

    @staticmethod
    def post(url, **kwargs):
        return Http.request(HTTP.POST, url, **kwargs)

    @staticmethod
    def head(url, **kwargs):
        return Http.request(HTTP.HEAD, url, **kwargs)

    @staticmethod
    def delete(url, **kwargs):
        return Http.request(HTTP.DELETE, url, **kwargs)

    @staticmethod
    def put(url, **kwargs):

        return Http.request(HTTP.PUT, url, **kwargs)