Fix guardaserieclick e ricerca ilgenio

This commit is contained in:
mac12m99
2021-06-23 19:22:46 +02:00
parent e9c561318e
commit 5be564b3e9
2 changed files with 40 additions and 41 deletions
+16 -17
View File
@@ -25,18 +25,16 @@ headers = [['Referer', host]]
@support.menu
def mainlist(item):
tvshow = ['/lista-serie-tv',
('Aggiornamenti', ['/lista-serie-tv', 'peliculas', 'update']),
('Generi', ['/categorie', 'genres', 'genres']),
('News Sub-ITA', ['/lista-serie-tv', 'peliculas', 'ined']),
('Da non perdere', ['/lista-serie-tv', 'peliculas', 'nolost']),
('Classiche', ["/lista-serie-tv", 'peliculas', 'classic']),
tvshow = ['',
('Aggiornamenti', ['', 'peliculas', 'update']),
('Generi', ['', 'genres', 'genres']),
('News Sub-ITA', ['', 'peliculas', 'ined']),
('Anime/Cartoni', ["/category/animazione/", 'peliculas', 'genres'])
]
return locals()
##@support.scrape
##def peliculas(item):
#### import web_pdb; web_pdb.set_trace()
@@ -101,12 +99,12 @@ def peliculas(item):
## pagination = 25
elif item.args == 'update':
patronBlock = r'<div\s+class="container-fluid greybg title-serie-lastep title-last-ep fixed-title-wrapper containerBottomBarTitle">' + end_block
patron = r'<a(?: rel="[^"]+")? href="(?P<url>[^"]+)"(?: class="[^"]+")?>[ ]<img class="[^"]+"[ ]title="[^"]+"[ ]alt="[^"]+"[ ](?:|meta-)?src="(?P<thumb>[^"]+)"[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>(?:\d+.\d+)[ ]\((?P<lang>[a-zA-Z\-]+)[^<]+<[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>(?P<title>[^<]+)<'
elif item.args == 'nolost':
patronBlock = r'<h2 class="title-typology styck-top" meta-class="title-serie-danonperd">'+end_block
## pagination = 25
elif item.args == 'classic':
patronBlock = r'<h2 class="title-typology styck-top" meta-class="title-serie-classiche">'+end_block
patron = r'href="(?P<url>[^"]+)".*?>\s<img\s.*?src="(?P<thumb>[^"]+)"\s/>[^>]+>[^>]+>\s[^>]+>.+?class="strongText">(?P<title>.+?)<'
# elif item.args == 'nolost':
# patronBlock = r'<h2 class="title-typology styck-top" meta-class="title-serie-danonperd">' + end_block
# pagination = 25
# elif item.args == 'classic':
# patronBlock = r'<h2 class="title-typology styck-top" meta-class="title-serie-classiche">' + end_block
## patron = r'<a href="(?P<url>[^"]+)".*?>\s<img\s.*?src="(?P<thumb>[^"]+)"\s/>[^>]+>[^>]+>\s[^>]+>\s(?P<year>\d{4})?\s.+?class="strongText">(?P<title>.+?)<'
## pagination = 25
## elif item.args == 'anime':
@@ -135,15 +133,15 @@ def episodios(item):
# debug = True
return locals()
@support.scrape
def genres(item):
info()
action = 'peliculas'
patron = r'<li>\s<a\shref="(?P<url>[^"]+)"[^>]+>(?P<title>[^<]+)</a></li>'
patronMenu = r'<li>\s<a\shref="(?P<url>[^"]+)"[^>]+>(?P<title>[^<]+)</a></li>'
patron_block = r'<ul\sclass="dropdown-menu category">(?P<block>.*?)</ul>'
item.contentType = ''
# debug = True
return locals()
@@ -161,6 +159,7 @@ def search(item, text):
info("%s" % line)
return []
def newest(categoria):
info()
itemlist = []
@@ -169,7 +168,7 @@ def newest(categoria):
item.args = 'update'
try:
if categoria == "series":
item.url = "%s/lista-serie-tv" % host
item.url = host
item.action = "peliculas"
itemlist = peliculas(item)
+2 -2
View File
@@ -124,9 +124,9 @@ def genres(item):
def search(item, text):
info(text)
itemlist = []
import uuid
text = text.replace(' ', '+')
item.url = host + '/?a=b&s=' + text
item.url = host + '/?' + uuid.uuid4().hex + '=' + uuid.uuid4().hex + '&s=' + text
try:
item.args = 'search'
return peliculas(item)