toonitalia: fix menu and icons
This commit is contained in:
@@ -12,19 +12,18 @@ headers = [['Referer', host]]
|
|||||||
|
|
||||||
@support.menu
|
@support.menu
|
||||||
def mainlist(item):
|
def mainlist(item):
|
||||||
|
top = [('Anime',['/category/anime', 'peliculas']),
|
||||||
anime =['/category/anime',
|
('Anime ITA',['/anime-ita','peliculas','list', 'anime']),
|
||||||
('ITA',['/anime-ita','peliculas','list']),
|
('Anime Sub-ITA',['/contatti', 'peliculas', 'list']),
|
||||||
('Sub-ITA',['/contatti', 'peliculas', 'list']),
|
('Film Animazione',['/film-animazione', 'peliculas','list']),
|
||||||
('Film Animazione',['/film-animazione', 'peliculas','list']),
|
('Serie TV',['/serie-tv/', 'peliculas','list'])]
|
||||||
('Serie TV',['/serie-tv/', 'peliculas','list']),]
|
|
||||||
# ('Film Animati',['/lista-anime-ita','peliculas', '', 'movie'])]
|
|
||||||
search = ''
|
search = ''
|
||||||
return locals()
|
return locals()
|
||||||
|
|
||||||
|
|
||||||
def search(item, text):
|
def search(item, text):
|
||||||
item.args='search'
|
item.args='search'
|
||||||
|
item.thumbnail = 'anime'
|
||||||
item.url = "{}/?{}".format(host, support.urlencode({"s": text}))
|
item.url = "{}/?{}".format(host, support.urlencode({"s": text}))
|
||||||
support.info(item.url)
|
support.info(item.url)
|
||||||
|
|
||||||
@@ -43,7 +42,7 @@ def search(item, text):
|
|||||||
def peliculas(item):
|
def peliculas(item):
|
||||||
anime = True
|
anime = True
|
||||||
action = 'check'
|
action = 'check'
|
||||||
|
|
||||||
deflang = 'ITA' if 'sub' not in item.url else 'Sub-ITA'
|
deflang = 'ITA' if 'sub' not in item.url else 'Sub-ITA'
|
||||||
if item.args == 'list':
|
if item.args == 'list':
|
||||||
pagination = 20
|
pagination = 20
|
||||||
|
|||||||
+1
-2
@@ -31,9 +31,8 @@ def get_video_url(page_url, premium=False, user="", password="", video_password=
|
|||||||
ext = '.mp4'
|
ext = '.mp4'
|
||||||
|
|
||||||
global data
|
global data
|
||||||
logger.info(data)
|
|
||||||
packed = scrapertools.find_single_match(data, r'(eval.*?)</script>')
|
packed = scrapertools.find_single_match(data, r'(eval.*?)</script>')
|
||||||
logger.info(packed)
|
|
||||||
unpacked = jsunpack.unpack(packed)
|
unpacked = jsunpack.unpack(packed)
|
||||||
|
|
||||||
# mixdrop like to change var name very often, hoping that will catch every
|
# mixdrop like to change var name very often, hoping that will catch every
|
||||||
|
|||||||
Reference in New Issue
Block a user