Fix AnimeUnity
This commit is contained in:
@@ -113,7 +113,7 @@ def newest(categoria):
|
|||||||
|
|
||||||
def news(item):
|
def news(item):
|
||||||
support.info()
|
support.info()
|
||||||
item.contentType = 'tvshow'
|
item.contentType = 'episode'
|
||||||
itemlist = []
|
itemlist = []
|
||||||
|
|
||||||
fullJs = json.loads(support.match(item, headers=headers, patron=r'items-json="([^"]+)"').match.replace('"','"'))
|
fullJs = json.loads(support.match(item, headers=headers, patron=r'items-json="([^"]+)"').match.replace('"','"'))
|
||||||
@@ -123,12 +123,11 @@ def news(item):
|
|||||||
itemlist.append(
|
itemlist.append(
|
||||||
item.clone(title= support.typo(it['anime']['title'] + ' - EP. ' + it['number'], 'bold'),
|
item.clone(title= support.typo(it['anime']['title'] + ' - EP. ' + it['number'], 'bold'),
|
||||||
fulltitle=it['anime']['title'],
|
fulltitle=it['anime']['title'],
|
||||||
server='directo',
|
|
||||||
thumbnail=it['anime']['imageurl'],
|
thumbnail=it['anime']['imageurl'],
|
||||||
forcethumb = True,
|
forcethumb = True,
|
||||||
video_url=it['link'],
|
video_url=it['link'],
|
||||||
plot=it['anime']['plot'],
|
plot=it['anime']['plot'],
|
||||||
action='play')
|
action='findvideos')
|
||||||
)
|
)
|
||||||
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']))
|
||||||
@@ -149,11 +148,7 @@ def peliculas(item):
|
|||||||
|
|
||||||
payload = json.dumps(item.args)
|
payload = json.dumps(item.args)
|
||||||
records = requests.post(host + '/archivio/get-animes', headers=headers, data=payload).json()['records']
|
records = requests.post(host + '/archivio/get-animes', headers=headers, data=payload).json()['records']
|
||||||
# js = []
|
|
||||||
# support.info(records)
|
|
||||||
# for record in records:
|
|
||||||
# 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'])
|
||||||
|
|||||||
Reference in New Issue
Block a user