mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 22:32:50 +02:00
Fix parseString
This commit is contained in:
@@ -33,7 +33,7 @@ module.exports = class AnimeCommand extends Command {
|
||||
.query({
|
||||
q: query
|
||||
});
|
||||
const { anime } = await xml.parseString(text);
|
||||
const { anime } = await xml.parseStringAsync(text);
|
||||
const synopsis = anime.entry[0].synopsis[0].substr(0, 2000)
|
||||
.replace(/(<br \/>)/g, '')
|
||||
.replace(/(')/g, '\'')
|
||||
|
||||
Reference in New Issue
Block a user