# 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/scrapertools.py
# def cache_page(url,post=None,headers=None,modo_cache=None, timeout=None):
# def cachePage(url,post=None,headers=None,modoCache=None, timeout=None):
# def downloadpage(url,post=None,headers=None, follow_redirects=True, timeout=None, header_to_get=None):
# def downloadpageWithResult(url,post=None,headers=None,follow_redirects=True, timeout=None, header_to_get=None):
# def downloadpageWithoutCookies(url):
# def downloadpageGzip(url):
# def getLocationHeaderFromResponse(url):
# def get_header_from_response(url, header_to_get="", post=None, headers=None, follow_redirects=False):
# def get_headers_from_response(url, post=None, headers=None, follow_redirects=False):
# def read_body_and_headers(url, post=None, headers=None, follow_redirects=False, timeout=None):
# def anti_cloudflare(url, headers=None, post=None):
# def printMatches(matches):
# def get_match(data,patron,index=0):
# def find_single_match(data,patron,index=0):
# def find_multiple_matches(text,pattern):
# def entityunescape(cadena):
# def unescape(text):
#     def fixup(m):
# def decodeHtmlentities(string):
#     def substitute_entity(match):
# def entitiesfix(string):
# def htmlclean(cadena):
# def slugify(title):
# def remove_htmltags(string):
# def remove_show_from_title(title,show):
# def getRandom(str):
# def unseo(cadena):
# def get_filename_from_url(url):
# def get_domain_from_url(url):
# def get_season_and_episode(title):
# def get_sha1(cadena):
# def get_md5(cadena):
# def internet(host="8.8.8.8", port=53, timeout=3):
# def wait_for_internet(wait=30, retry=5):


import os
import re
    import xbmcgui
from threading import Thread
from core import config
from core import scrapertools
# -*- coding: utf-8 -*-
# ------------------------------------------------------------
# pelisalacarta - XBMC Plugin
# update_servers.py
# http://blog.tvalacarta.info/plugin-xbmc/pelisalacarta/
# ------------------------------------------------------------



DEBUG = config.get_setting("debug")

UPDATE_URL_IDX, ACTIVE_IDX, VERSION_IDX, DATE_IDX, CHANGES_IDX = xrange(0, 5)

remote_url = "https://raw.githubusercontent.com/orione7/plugin.video.streamondemand-pureita/master/servers/"

# 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/scrapertools.py
# def cache_page(url,post=None,headers=None,modo_cache=None, timeout=None):
# def cachePage(url,post=None,headers=None,modoCache=None, timeout=None):
# def downloadpage(url,post=None,headers=None, follow_redirects=True, timeout=None, header_to_get=None):
# def downloadpageWithResult(url,post=None,headers=None,follow_redirects=True, timeout=None, header_to_get=None):
# def downloadpageWithoutCookies(url):
# def downloadpageGzip(url):
# def getLocationHeaderFromResponse(url):
# def get_header_from_response(url, header_to_get="", post=None, headers=None, follow_redirects=False):
# def get_headers_from_response(url, post=None, headers=None, follow_redirects=False):
# def read_body_and_headers(url, post=None, headers=None, follow_redirects=False, timeout=None):
# def anti_cloudflare(url, headers=None, post=None):
# def printMatches(matches):
# def get_match(data,patron,index=0):
# def find_single_match(data,patron,index=0):
# def find_multiple_matches(text,pattern):
# def entityunescape(cadena):
# def unescape(text):
#     def fixup(m):
# def decodeHtmlentities(string):
#     def substitute_entity(match):
# def entitiesfix(string):
# def htmlclean(cadena):
# def slugify(title):
# def remove_htmltags(string):
# def remove_show_from_title(title,show):
# def getRandom(str):
# def unseo(cadena):
# def get_filename_from_url(url):
# def get_domain_from_url(url):
# def get_season_and_episode(title):
# def get_sha1(cadena):
# def get_md5(cadena):
# def internet(host="8.8.8.8", port=53, timeout=3):
# def wait_for_internet(wait=30, retry=5):


# Path: core/update_servers.py
import os
import re
    import xbmcgui
from threading import Thread
from core import config
from core import scrapertools

# -*- coding: utf-8 -*-
# ------------------------------------------------------------
# pelisalacarta - XBMC Plugin
# update_servers.py
# http://blog.tvalacarta.info/plugin-xbmc/pelisalacarta/
# ------------------------------------------------------------



DEBUG = config.get_setting("debug")

UPDATE_URL_IDX, ACTIVE_IDX, VERSION_IDX, DATE_IDX, CHANGES_IDX = xrange(0, 5)

remote_url = "https://raw.githubusercontent.com/orione7/plugin.video.streamondemand-pureita/master/servers/"

local_folder = os.path.join(config.get_runtime_path(), "servers")