# Path: resources/lib/modules/cache.py
# def get(function, timeout_hour, *args, **kargs):
# def clear_item(function, *args, **kargs):
# def __get_from_cache(dbcur, table, f, a, timeout_hour):
# def __execute_origin(dbcur, dbcon, function, table, f, a, response, *args, **kargs):
# def delete_file():
# def clear(table=None):
# 
# Path: resources/lib/modules/workers.py
# class Thread(threading.Thread):
# class Workers:
#     def __init__(self, target, *args):
#     def run(self):
#     def get_result(self):
#     def globaltrace(self, frame, event, arg):
#     def localtrace(self, frame, event, arg):
#     def kill(self):
#     def __init__(self, concurrent=30, queue_size=None, target=None, expect_result=True):
#         def _queue_worker():
#     def put(self, item):
#     def join(self):
#     def terminate(self):


from auth import PLATFORM
from auth import get_request_data
from resources.lib.modules import cache
from resources.lib.modules import workers
import requests
import resources.lib.modules.control as control
import scraper_live
import player
import os
import urllib

LOGO = os.path.join(control.artPath(), 'logo_now.png')
FANART = 'https://t2.tudocdn.net/391136'
THUMB = 'https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcScaBeflBdP6AdV246I7YtH6j9r997X39OeHg&usqp=CAU'


def get_channels():
    return [{
        'handler': __name__,
        'method': 'get_channel_categories',
        "label": 'Now Online',
        "adult": False,
        'art': {
            'icon': LOGO,
            'clearlogo': LOGO,
            'thumb': LOGO,
            'fanart': FANART
        }
    }]


def get_channel_categories():
    categories = [
        CATEGORIES.INICIO,
        CATEGORIES.ESPECIAIS,
        CATEGORIES.TV,
        CATEGORIES.FILMES,
        CATEGORIES.SERIES,
        CATEGORIES.KIDS,
        CATEGORIES.CLARO,

# Path: resources/lib/modules/cache.py
# def get(function, timeout_hour, *args, **kargs):
# def clear_item(function, *args, **kargs):
# def __get_from_cache(dbcur, table, f, a, timeout_hour):
# def __execute_origin(dbcur, dbcon, function, table, f, a, response, *args, **kargs):
# def delete_file():
# def clear(table=None):
# 
# Path: resources/lib/modules/workers.py
# class Thread(threading.Thread):
# class Workers:
#     def __init__(self, target, *args):
#     def run(self):
#     def get_result(self):
#     def globaltrace(self, frame, event, arg):
#     def localtrace(self, frame, event, arg):
#     def kill(self):
#     def __init__(self, concurrent=30, queue_size=None, target=None, expect_result=True):
#         def _queue_worker():
#     def put(self, item):
#     def join(self):
#     def terminate(self):


# Path: resources/lib/modules/netnow/scraper_vod.py
from auth import PLATFORM
from auth import get_request_data
from resources.lib.modules import cache
from resources.lib.modules import workers
import requests
import resources.lib.modules.control as control
import scraper_live
import player
import os
import urllib


LOGO = os.path.join(control.artPath(), 'logo_now.png')
FANART = 'https://t2.tudocdn.net/391136'
THUMB = 'https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcScaBeflBdP6AdV246I7YtH6j9r997X39OeHg&usqp=CAU'


def get_channels():
    return [{
        'handler': __name__,
        'method': 'get_channel_categories',
        "label": 'Now Online',
        "adult": False,
        'art': {
            'icon': LOGO,
            'clearlogo': LOGO,
            'thumb': LOGO,
            'fanart': FANART
        }
    }]


def get_channel_categories():
    categories = [
        CATEGORIES.INICIO,
        CATEGORIES.ESPECIAIS,
        CATEGORIES.TV,
        CATEGORIES.FILMES,
        CATEGORIES.SERIES,
        CATEGORIES.KIDS,
        CATEGORIES.CLARO,

        CATEGORIES.CLUBE,