From 9a381cc8080fd8a37080f57a97d2217782a21444 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Tue, 9 Jul 2019 20:19:45 -0400 Subject: [PATCH] Show Watching and Completed anime --- commands/search/anime.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/commands/search/anime.js b/commands/search/anime.js index 51504a29..211c210c 100644 --- a/commands/search/anime.js +++ b/commands/search/anime.js @@ -159,7 +159,11 @@ module.exports = class AnimeCommand extends Command { }, query: personalGraphQL }); - this.personalList = body.data.MediaListCollection.lists[0].entries; + const { lists } = body.data.MediaListCollection; + this.personalList = [ + ...lists.find(list => list.name === 'Watching'), + ...lists.find(list => list.name === 'Completed') + ]; setTimeout(() => { this.personalList = null; }, 3.6e+6); return this.personalList; }