Skip to content

Commit

Permalink
Merge branch 'master' of github.com:z411/trackma
Browse files Browse the repository at this point in the history
  • Loading branch information
z411 committed Aug 21, 2018
2 parents 14c704a + f1b3c7c commit 98734cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion trackma/lib/libanilist.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,10 +357,11 @@ def search(self, criteria):
for media in data:
show = utils.show()
showid = media['id']
aliases = [a for a in (media['title']['romaji'], media['title']['english'], media['title']['native']) if a]
showdata = {
'id': showid,
'title': media['title']['userPreferred'],
'aliases': [media['title']['romaji'], media['title']['english'], media['title']['native']],
'aliases': aliases,
'type': media['format'], # Need to reformat output
'status': self.status_translate[media['status']],
'total': self._c(media[self.total_str]),
Expand Down

0 comments on commit 98734cf

Please sign in to comment.