toonitalia: fix channel
This commit is contained in:
+12
-9
@@ -14,18 +14,18 @@ headers = [['Referer', host]]
|
|||||||
def mainlist(item):
|
def mainlist(item):
|
||||||
|
|
||||||
anime =['/category/anime',
|
anime =['/category/anime',
|
||||||
('ITA',['/lista-anime-ita','peliculas',]),
|
('ITA',['/anime-ita','peliculas','list']),
|
||||||
('Sub-ITA',['/lista-anime-sub-ita', 'peliculas'])]
|
('Sub-ITA',['/contatti', 'peliculas', 'list']),
|
||||||
|
('Film Animazione',['/film-animazione', 'peliculas','list'])]
|
||||||
# ('Film Animati',['/lista-anime-ita','peliculas', '', 'movie'])]
|
# ('Film Animati',['/lista-anime-ita','peliculas', '', 'movie'])]
|
||||||
search = ''
|
search = ''
|
||||||
return locals()
|
return locals()
|
||||||
|
|
||||||
|
|
||||||
def search(item, text):
|
def search(item, text):
|
||||||
support.info(text)
|
item.args='search'
|
||||||
# item.args='search'
|
item.url = "{}/?{}".format(host, support.urlencode({"s": text}))
|
||||||
item.text = text
|
support.info(item.url)
|
||||||
item.url = item.url + '/?a=b&s=' + text.replace(' ', '+')
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
return peliculas(item)
|
return peliculas(item)
|
||||||
@@ -44,13 +44,16 @@ def peliculas(item):
|
|||||||
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 'lista' in item.url:
|
if item.args == 'list':
|
||||||
pagination = 20
|
pagination = 20
|
||||||
patron = r'<li><a href="(?P<url>[^"]+)">(?P<title>[^<]+)'
|
patron = r'<li><a href="(?P<url>[^"]+)">(?P<title>[^<]+)'
|
||||||
|
|
||||||
else:
|
else:
|
||||||
patronBlock = '<main[^>]+>(?P<block>.*)</main>'
|
patronBlock = '<main[^>]+>(?P<block>.*)</main>'
|
||||||
patron = r'(?i)<a href="(?P<url>[^"]+)" rel="bookmark">(?P<title>[^<]+)</a>(:?[^>]+>){3}(?:<img.*?src="(?P<thumb>[^"]+)")?.*?<p>(?P<plot>[^<]+)</p>.*?tag">.*?(?P<type>(?:film|serie|anime))(?P<cat>.*?)</span>'
|
patron = r'<article.*?<h2 class="entry-title.*?<a href="(?P<url>.*?)">(?P<title>.*?)</a>.*?<img.*?src="(?P<thumb>.*?)".*?<p>(?P<plot>.*?)</p>.*?</article>'
|
||||||
|
if item.args == 'search':
|
||||||
|
patron = r'<article.*?<h2 class="entry-title.*?<a href="(?P<url>.*?)">(?P<title>.*?)</a>.*?<p>(?P<plot>.*?)</p>.*?</article>'
|
||||||
|
|
||||||
typeContentDict={'movie':['film']}
|
typeContentDict={'movie':['film']}
|
||||||
typeActionDict={'findvideos':['film']}
|
typeActionDict={'findvideos':['film']}
|
||||||
patronNext = '<a class="next page-numbers" href="([^"]+)">'
|
patronNext = '<a class="next page-numbers" href="([^"]+)">'
|
||||||
|
|||||||
Reference in New Issue
Block a user