Fix crash on anime-ultime
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
7caace6b69
commit
91cd067352
@ -34,8 +34,9 @@ class AnimeUltime(ConnectorCore):
|
|||||||
if response['http_code'] == 200:
|
if response['http_code'] == 200:
|
||||||
html = BeautifulSoup(response['output'], 'html.parser')
|
html = BeautifulSoup(response['output'], 'html.parser')
|
||||||
title = html.select('div.title')
|
title = html.select('div.title')
|
||||||
|
player = html.select('div.AUVideoPlayer')
|
||||||
|
|
||||||
if 'Recherche' in title[0].string:
|
if 'Recherche' in title[0].decode_contents():
|
||||||
trs = html.select('table.jtable tr')
|
trs = html.select('table.jtable tr')
|
||||||
|
|
||||||
for i, tr in enumerate(trs):
|
for i, tr in enumerate(trs):
|
||||||
@ -58,8 +59,7 @@ class AnimeUltime(ConnectorCore):
|
|||||||
'date': parse_date(None),
|
'date': parse_date(None),
|
||||||
'class': self.color if link_exist_in_db(href) else ''
|
'class': self.color if link_exist_in_db(href) else ''
|
||||||
})
|
})
|
||||||
else:
|
elif len(player) > 0:
|
||||||
player = html.select('div.AUVideoPlayer')
|
|
||||||
name = html.select('h1')
|
name = html.select('h1')
|
||||||
ani_type = html.select('div.titre')
|
ani_type = html.select('div.titre')
|
||||||
href = '%s/file-0-1/%s' % (self.base_url, player[0]['data-serie'])
|
href = '%s/file-0-1/%s' % (self.base_url, player[0]['data-serie'])
|
||||||
|
Reference in New Issue
Block a user