mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 14:20:51 +02:00
Show Watching and Completed anime
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user