# Path: core/config.py
# PLATFORM_NAME = "kodi-isengard"
# PLUGIN_NAME = "streamondemand-pureita-master"
# def get_platform():
# def is_xbmc():
# def get_library_support():
# def get_system_platform():
# def open_settings():
# def get_setting(name):
# def set_setting(name,value):
# def get_localized_string(code):
# def get_library_path():
# def get_temp_file(filename):
# def get_runtime_path():
# def get_data_path():
# def get_cookie_data():
# def verify_directories_created():
# 
# Path: core/logger.py
# def log_enable(active):
# def encode_log(message=""):
# def get_caller(message=None):
# def info(texto=""):
# def debug(texto=""):
# def error(texto=""):


import os
import sys
import urllib
import xbmcgui
            import sys
from xbmcaddon import Addon
from core import config
from core import logger
        return self.confirmed

    def getText(self):
        return self.inputString


class Keyboard:
    def __init__(self, default='', heading='', captcha=''):
        self.confirmed = False
        self.inputString = default
        self.heading = heading
        self.captcha = captcha
        self.win = None

    def initializeImage(self):
        # EL captcha no lo recuoera, por lo que lo guardamos en fichero
        try:
            if self.captcha == "":
                self.captcha = DEFAULT_CAPTCHA
            else:
                nombre_fichero_config_canal = os.path.join(config.get_data_path(), "captcha.img")
                webfile = urllib.urlopen(self.captcha)
                localfile = open(nombre_fichero_config_canal, "wb")
                localfile.write(webfile.read())
                webfile.close()
                localfile.close()
                self.captcha = nombre_fichero_config_canal
        except:
            self.captcha = DEFAULT_CAPTCHA
            for line in sys.exc_info():

# Path: core/config.py
# PLATFORM_NAME = "kodi-isengard"
# PLUGIN_NAME = "streamondemand-pureita-master"
# def get_platform():
# def is_xbmc():
# def get_library_support():
# def get_system_platform():
# def open_settings():
# def get_setting(name):
# def set_setting(name,value):
# def get_localized_string(code):
# def get_library_path():
# def get_temp_file(filename):
# def get_runtime_path():
# def get_data_path():
# def get_cookie_data():
# def verify_directories_created():
# 
# Path: core/logger.py
# def log_enable(active):
# def encode_log(message=""):
# def get_caller(message=None):
# def info(texto=""):
# def debug(texto=""):
# def error(texto=""):


# Path: platformcode/captcha.py
import os
import sys
import urllib
import xbmcgui
            import sys
from xbmcaddon import Addon
from core import config
from core import logger

        return self.confirmed

    def getText(self):
        return self.inputString


class Keyboard:
    def __init__(self, default='', heading='', captcha=''):
        self.confirmed = False
        self.inputString = default
        self.heading = heading
        self.captcha = captcha
        self.win = None

    def initializeImage(self):
        # EL captcha no lo recuoera, por lo que lo guardamos en fichero
        try:
            if self.captcha == "":
                self.captcha = DEFAULT_CAPTCHA
            else:
                nombre_fichero_config_canal = os.path.join(config.get_data_path(), "captcha.img")
                webfile = urllib.urlopen(self.captcha)
                localfile = open(nombre_fichero_config_canal, "wb")
                localfile.write(webfile.read())
                webfile.close()
                localfile.close()
                self.captcha = nombre_fichero_config_canal
        except:
            self.captcha = DEFAULT_CAPTCHA
            for line in sys.exc_info():

                logger.error("%s" % line)