[^"]+)"[^>]+'
+ def itemHook(item):
+ if 'movie' in item.title.lower():
+ item.title = support.re.sub(' - [Mm][Oo][Vv][Ii][Ee]|[Mm][Oo][Vv][Ii][Ee]','',item.title)
+ item.title += support.typo('Movie','_ () bold')
+ item.contentType = 'movie'
+ item.action = 'findvideos'
+ return item
+ patronNext = r''
+ action = 'episodios'
+ return locals()
- for url, title, thumb in matches:
- title = scrapertoolsV2.decodeHtmlentities(title.strip()).replace("streaming", "")
- lang = scrapertoolsV2.find_single_match(title, r"((?:SUB ITA|ITA))")
- videoType = ''
- if 'movie' in title.lower():
- videoType = ' - (MOVIE)'
- if 'ova' in title.lower():
- videoType = ' - (OAV)'
-
- cleantitle = title.replace(lang, "").replace('(Streaming & Download)', '').replace('( Streaming & Download )', '').replace('OAV', '').replace('OVA', '').replace('MOVIE', '').strip()
-
- if not videoType :
- contentType="tvshow"
- action="episodios"
- else:
- contentType="movie"
- action="findvideos"
-
- if not title.lower() in blacklist:
- itemlist.append(
- Item(channel=item.channel,
- action=action,
- contentType=contentType,
- title=support.typo(cleantitle + videoType, 'bold') + support.typo(lang,'_ [] color kod'),
- fulltitle=cleantitle,
- show=cleantitle,
- url=url,
- thumbnail=thumb))
-
- tmdb.set_infoLabels_itemlist(itemlist, seekTmdb=True)
- autorenumber.renumber(itemlist)
- support.nextPage(itemlist, item, data, r'')
-
- return itemlist
+@support.scrape
def episodios(item):
- log()
- itemlist = []
+ url = item.url
+ anime = True
+ patronBlock = r'(?:|
'
+ patron = r'(?:]+>)?(?P\d+)'
+ def itemHook(item):
+ if not item.url:
+ item.url = url
+ item.title = support.typo('Episodio ', 'bold') + item.title
+ return item
+ return locals()
- data = httptools.downloadpage(item.url).data
- block = scrapertoolsV2.find_single_match(data, r'(?:|
')
-
- itemlist.append(
- Item(channel=item.channel,
- action='findvideos',
- contentType='episode',
- title=support.typo('Episodio 1 bold'),
- fulltitle=item.title,
- url=item.url,
- thumbnail=item.thumbnail))
-
- if block:
- matches = re.compile(r'(\d+)', re.DOTALL).findall(data)
- for url, number in matches:
- itemlist.append(
- Item(channel=item.channel,
- action='findvideos',
- contentType='episode',
- title=support.typo('Episodio ' + number,'bold'),
- fulltitle=item.title,
- url=url,
- thumbnail=item.thumbnail))
-
- autorenumber.renumber(itemlist, item)
- support.videolibrary
- return itemlist
def findvideos(item):
- log()
+ support.log()
data = ''
matches = support.match(item, 'str="([^"]+)"')[0]
if matches:
for match in matches:
- data += str(jsfunctions.unescape(re.sub('@|g','%', match)))
+ data += str(jsfunctions.unescape(support.re.sub('@|g','%', match)))
data += str(match)
- log('DATA',data)
- if 'animepertutti' in data:
- log('ANIMEPERTUTTI!')
-
else:
data = ''
- itemlist = support.server(item,data)
-
- if checklinks:
- itemlist = servertools.check_list_links(itemlist, checklinks_number)
-
- # itemlist = filtertools.get_links(itemlist, item, list_language)
- autoplay.start(itemlist, item)
-
- return itemlist
+ return support.server(item,data)
diff --git a/channels/animesaturn.py b/channels/animesaturn.py
index 50c265f4..54c2e4d7 100644
--- a/channels/animesaturn.py
+++ b/channels/animesaturn.py
@@ -19,7 +19,7 @@ list_quality = ['default', '480p', '720p', '1080p']
def mainlist(item):
anime = ['/animelist?load_all=1',
- ('Novità',['','newest', 'anime']),
+ ('Più Votati',['/toplist','menu', 'top']),
('In Corso',['/animeincorso','peliculas','incorso']),
('Ultimi Episodi',['/fetch_pages.php?request=episodes','peliculas','updated'])]
@@ -53,16 +53,28 @@ def newest(categoria):
return itemlist
+@support.scrape
+def menu(item):
+ patronMenu = r'u>(?P
[^<]+)(?P.*?) '
+ action = 'peliculas'
+ return locals()
+
@support.scrape
def peliculas(item):
anime = True
+ # debug = True
if item.args == 'updated':
post = "page=" + str(item.page if item.page else 1) if item.page > 1 else None
page, data = support.match(item, r'data-page="(\d+)" title="Next">', post=post, headers=headers)
patron = r'