fix animeunity
This commit is contained in:
+26
-26
@@ -121,15 +121,14 @@ def news(item):
|
|||||||
|
|
||||||
for it in js:
|
for it in js:
|
||||||
itemlist.append(
|
itemlist.append(
|
||||||
support.Item(channel=item.channel,
|
item.clone(title= support.typo(it['anime']['title'] + ' - EP. ' + it['number'], 'bold'),
|
||||||
title= support.typo(it['anime']['title'] + ' - EP. ' + it['number'], 'bold'),
|
fulltitle=it['anime']['title'],
|
||||||
fulltitle=it['anime']['title'],
|
server='directo',
|
||||||
server='directo',
|
thumbnail=it['anime']['imageurl'],
|
||||||
thumbnail=it['anime']['imageurl'],
|
forcethumb = True,
|
||||||
forcethumb = True,
|
video_url=it['link'],
|
||||||
url=it['link'],
|
plot=it['anime']['plot'],
|
||||||
plot=it['anime']['plot'],
|
action='play')
|
||||||
action='play')
|
|
||||||
)
|
)
|
||||||
if 'next_page_url' in fullJs:
|
if 'next_page_url' in fullJs:
|
||||||
itemlist.append(item.clone(title=support.typo(support.config.get_localized_string(30992), 'color kod bold'),thumbnail=support.thumb(), url=fullJs['next_page_url']))
|
itemlist.append(item.clone(title=support.typo(support.config.get_localized_string(30992), 'color kod bold'),thumbnail=support.thumb(), url=fullJs['next_page_url']))
|
||||||
@@ -154,6 +153,7 @@ def peliculas(item):
|
|||||||
# support.info(records)
|
# support.info(records)
|
||||||
# for record in records:
|
# for record in records:
|
||||||
# js += record
|
# js += record
|
||||||
|
|
||||||
for it in records:
|
for it in records:
|
||||||
lang = support.match(it['title'], patron=r'\(([It][Tt][Aa])\)').match
|
lang = support.match(it['title'], patron=r'\(([It][Tt][Aa])\)').match
|
||||||
title = support.re.sub(r'\s*\([^\)]+\)', '', it['title'])
|
title = support.re.sub(r'\s*\([^\)]+\)', '', it['title'])
|
||||||
@@ -166,13 +166,14 @@ def peliculas(item):
|
|||||||
itm.type = it['type']
|
itm.type = it['type']
|
||||||
itm.thumbnail = it['imageurl']
|
itm.thumbnail = it['imageurl']
|
||||||
itm.plot = it['plot']
|
itm.plot = it['plot']
|
||||||
|
itm.url = item.url
|
||||||
|
|
||||||
if it['episodes_count'] == 1:
|
if it['episodes_count'] == 1:
|
||||||
itm.contentType = 'movie'
|
itm.contentType = 'movie'
|
||||||
itm.fulltitle = itm.show = itm.contentTitle = title
|
itm.fulltitle = itm.show = itm.contentTitle = title
|
||||||
itm.contentSerieName = ''
|
itm.contentSerieName = ''
|
||||||
itm.action = 'findvideos'
|
itm.action = 'findvideos'
|
||||||
itm.url = it['episodes'][0]['link']
|
itm.video_url = it['episodes'][0]['link']
|
||||||
|
|
||||||
else:
|
else:
|
||||||
itm.contentType = 'tvshow'
|
itm.contentType = 'tvshow'
|
||||||
@@ -180,7 +181,7 @@ def peliculas(item):
|
|||||||
itm.fulltitle = itm.show = itm.contentSerieName = title
|
itm.fulltitle = itm.show = itm.contentSerieName = title
|
||||||
itm.action = 'episodios'
|
itm.action = 'episodios'
|
||||||
itm.episodes = it['episodes'] if 'episodes' in it else it['link']
|
itm.episodes = it['episodes'] if 'episodes' in it else it['link']
|
||||||
itm.url = item.url
|
itm.video_url = item.url
|
||||||
|
|
||||||
itemlist.append(itm)
|
itemlist.append(itm)
|
||||||
|
|
||||||
@@ -196,18 +197,17 @@ def episodios(item):
|
|||||||
title = 'Parte ' if item.type.lower() == 'movie' else 'Episodio '
|
title = 'Parte ' if item.type.lower() == 'movie' else 'Episodio '
|
||||||
for it in item.episodes:
|
for it in item.episodes:
|
||||||
itemlist.append(
|
itemlist.append(
|
||||||
support.Item(channel=item.channel,
|
item.clone(title=support.typo(title + it['number'], 'bold'),
|
||||||
title=support.typo(title + it['number'], 'bold'),
|
episode = it['number'],
|
||||||
episode = it['number'],
|
fulltitle=item.title,
|
||||||
fulltitle=item.title,
|
show=item.title,
|
||||||
show=item.title,
|
contentTitle='',
|
||||||
contentTitle='',
|
contentSerieName=item.contentSerieName,
|
||||||
contentSerieName=item.contentSerieName,
|
thumbnail=item.thumbnail,
|
||||||
thumbnail=item.thumbnail,
|
plot=item.plot,
|
||||||
plot=item.plot,
|
action='findvideos',
|
||||||
action='findvideos',
|
contentType='episode',
|
||||||
contentType='episode',
|
video_url=it['link']))
|
||||||
url=it['link']))
|
|
||||||
|
|
||||||
if inspect.stack()[1][3] not in ['find_episodes']:
|
if inspect.stack()[1][3] not in ['find_episodes']:
|
||||||
autorenumber.start(itemlist, item)
|
autorenumber.start(itemlist, item)
|
||||||
@@ -218,7 +218,7 @@ def episodios(item):
|
|||||||
|
|
||||||
def findvideos(item):
|
def findvideos(item):
|
||||||
support.info()
|
support.info()
|
||||||
if not 'vvvvid' in item.url:
|
if not 'vvvvid' in item.video_url:
|
||||||
return support.server(item,itemlist=[item.clone(title=support.config.get_localized_string(30137), server='directo', action='play')])
|
return support.server(item,itemlist=[item.clone(title=support.config.get_localized_string(30137), url=item.video_url, server='directo', action='play')])
|
||||||
else:
|
else:
|
||||||
return support.server(item, item.url)
|
return support.server(item, item.video_url)
|
||||||
Reference in New Issue
Block a user