Fix AnimeSaturn
This commit is contained in:
@@ -8,6 +8,14 @@
|
|||||||
"banner": "animesaturn.png",
|
"banner": "animesaturn.png",
|
||||||
"categories": ["anime"],
|
"categories": ["anime"],
|
||||||
"settings": [
|
"settings": [
|
||||||
|
{
|
||||||
|
"id": "modo_grafico",
|
||||||
|
"type": "bool",
|
||||||
|
"label": "Cerca informazioni extra",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"visible": true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "channel_host",
|
"id": "channel_host",
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ __channel__ = "animesaturn"
|
|||||||
host = support.config.get_setting("channel_host", __channel__)
|
host = support.config.get_setting("channel_host", __channel__)
|
||||||
headers={'X-Requested-With': 'XMLHttpRequest'}
|
headers={'X-Requested-With': 'XMLHttpRequest'}
|
||||||
|
|
||||||
IDIOMAS = {'Italiano': 'IT'}
|
IDIOMAS = {'Italiano': 'ITA'}
|
||||||
list_language = IDIOMAS.values()
|
list_language = IDIOMAS.values()
|
||||||
list_servers = ['openload', 'fembed', 'animeworld']
|
list_servers = ['openload', 'fembed', 'animeworld']
|
||||||
list_quality = ['default', '480p', '720p', '1080p']
|
list_quality = ['default', '480p', '720p', '1080p']
|
||||||
@@ -63,7 +63,6 @@ def menu(item):
|
|||||||
@support.scrape
|
@support.scrape
|
||||||
def peliculas(item):
|
def peliculas(item):
|
||||||
anime = True
|
anime = True
|
||||||
# debug = True
|
|
||||||
if item.args == 'updated':
|
if item.args == 'updated':
|
||||||
post = "page=" + str(item.page if item.page else 1) if item.page > 1 else None
|
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)
|
page, data = support.match(item, r'data-page="(\d+)" title="Next">', post=post, headers=headers)
|
||||||
@@ -71,9 +70,8 @@ def peliculas(item):
|
|||||||
if page: nextpage = page
|
if page: nextpage = page
|
||||||
action = 'findvideos'
|
action = 'findvideos'
|
||||||
elif item.args == 'top':
|
elif item.args == 'top':
|
||||||
# debug = True
|
|
||||||
data = item.url
|
data = item.url
|
||||||
patron = r'a href="(?P<url>[^"]+)">[^>]+>(?P<title>[^<\(]+)(?:\((?P<year>[^\)]+)\))?</div></a><div class="numero">(?P<title2>[^<]+)</div>.*?<img alt="[^"]+" src="(?P<thumb>[^"]+)"'
|
patron = r'<a href="(?P<url>[^"]+)">[^>]+>(?P<title>[^<\(]+)(?:\((?P<year>[^\)]+)\))?</div></a><div class="numero">(?P<title2>[^<]+)</div>.*?src="(?P<thumb>[^"]+)"'
|
||||||
action = 'check'
|
action = 'check'
|
||||||
else:
|
else:
|
||||||
pagination = ''
|
pagination = ''
|
||||||
@@ -84,9 +82,10 @@ def peliculas(item):
|
|||||||
|
|
||||||
|
|
||||||
def check(item):
|
def check(item):
|
||||||
movie, data = support.match(item, r' Episodi:</b> (\d*) Movie')
|
movie, data = support.match(item, r'Episodi:</b> (\d*) Movie')
|
||||||
anime_id = support.match(data, r'anime_id=(\d+)')[0][0]
|
anime_id = support.match(data, r'anime_id=(\d+)')[0][0]
|
||||||
item.url = host + "/loading_anime?anime_id=" + anime_id
|
item.url = host + "/loading_anime?anime_id=" + anime_id
|
||||||
|
support.log('MOVIE= ', movie)
|
||||||
if movie:
|
if movie:
|
||||||
item.contentType = 'movie'
|
item.contentType = 'movie'
|
||||||
episodes = episodios(item)
|
episodes = episodios(item)
|
||||||
@@ -104,10 +103,11 @@ def episodios(item):
|
|||||||
|
|
||||||
|
|
||||||
def findvideos(item):
|
def findvideos(item):
|
||||||
|
support.log(item)
|
||||||
itemlist = []
|
itemlist = []
|
||||||
item.url = support.match(item, r'<a href="([^"]+)"><div class="downloadestreaming">',headers=headers)[0][0]
|
url = support.match(item, r'<a href="([^"]+)"><div class="downloadestreaming">',headers=headers)[0]
|
||||||
itemlist = support.server(item)
|
if url: item.url = url[0]
|
||||||
return itemlist
|
return support.server(item)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user