Fix anime-ultime duplication
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
f0136b8295
commit
ccd01664e6
@ -51,14 +51,15 @@ class AnimeUltime(ConnectorCore):
|
|||||||
url = tds[0].a
|
url = tds[0].a
|
||||||
href = '%s/%s' % (self.base_url, url['href'])
|
href = '%s/%s' % (self.base_url, url['href'])
|
||||||
|
|
||||||
self.data.append({
|
if not any(href == d['href'] for d in self.data):
|
||||||
'lang': ConnectorLang.JP,
|
self.data.append({
|
||||||
'href': '%s/%s' % (self.base_url, url['href']),
|
'lang': ConnectorLang.JP,
|
||||||
'name': url.get_text(),
|
'href': href,
|
||||||
'type': tds[1].get_text(),
|
'name': url.get_text(),
|
||||||
'date': parse_date(None),
|
'type': tds[1].get_text(),
|
||||||
'class': self.color if link_exist_in_db(href) else ''
|
'date': parse_date(None),
|
||||||
})
|
'class': self.color if link_exist_in_db(href) else ''
|
||||||
|
})
|
||||||
elif len(player) > 0:
|
elif len(player) > 0:
|
||||||
name = html.select('h1')
|
name = html.select('h1')
|
||||||
ani_type = html.select('div.titre')
|
ani_type = html.select('div.titre')
|
||||||
|
Reference in New Issue
Block a user