Fix anime-ultime duplication
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Michel Roux 2020-12-26 15:42:05 +01:00
parent f0136b8295
commit ccd01664e6

View File

@ -51,9 +51,10 @@ 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'])
if not any(href == d['href'] for d in self.data):
self.data.append({ self.data.append({
'lang': ConnectorLang.JP, 'lang': ConnectorLang.JP,
'href': '%s/%s' % (self.base_url, url['href']), 'href': href,
'name': url.get_text(), 'name': url.get_text(),
'type': tds[1].get_text(), 'type': tds[1].get_text(),
'date': parse_date(None), 'date': parse_date(None),