Esempio n. 1
0
def build_sub_menu(item):
    support.log()
    itemlist = []
    matches = support.re.compile(r'<input.*?name="([^"]+)" value="([^"]+)"\s*>[^>]+>([^<]+)<\/label>', support.re.DOTALL).findall(item.url)
    for name, value, title in matches:
        support.menuItem(itemlist, __channel__, support.typo(title, 'bold'), 'peliculas', host + '/filter?' + name + '=' + value + '&language[]=' + item.args + '&sort=', 'tvshow', args='sub')
    return itemlist
Esempio n. 2
0
def build_menu(item):
    support.log()
    itemlist = []
    support.menuItem(itemlist,
                     __channel__,
                     'Tutti bold',
                     'peliculas',
                     item.url,
                     'tvshow',
                     args=item.args)
    matches = support.match(
        item,
        patron=
        r'<button class="btn btn-sm btn-default dropdown-toggle" data-toggle="dropdown"> (.*?) <span.[^>]+>(.*?)</ul>',
        patronBlock=r'<form class="filters.*?>(.*?)</form>',
        headers=headers).matches
    for title, html in matches:
        if title not in 'Lingua Ordine':
            support.menuItem(itemlist,
                             __channel__,
                             title + ' submenu bold',
                             'build_sub_menu',
                             html,
                             'tvshow',
                             args=item.args)
    return itemlist
Esempio n. 3
0
def genres(item):
    support.log()
    itemlist = []
    matches = support.match(item, r'<input.*?name="([^"]+)" value="([^"]+)"\s*>[^>]+>([^<]+)<\/label>' , r'<button class="btn btn-sm btn-default dropdown-toggle" data-toggle="dropdown"> Generi <span.[^>]+>(.*?)</ul>', headers=headers)[0]
    for name, value, title in matches:
        support.menuItem(itemlist, __channel__, support.typo(title, 'bold'), 'peliculas', host + '/filter?' + name + '=' + value + '&sort=' + order(), 'tvshow', args='sub')
    return itemlist