mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -66,7 +66,9 @@ module.exports = class RottenTomatoesCommand extends Command {
|
||||
}
|
||||
|
||||
async fetchMovie(id) {
|
||||
const { text } = await request.get(`https://www.rottentomatoes.com/api/private/v1.0/movies/${id}`);
|
||||
const { text } = await request
|
||||
.get(`https://www.rottentomatoes.com/api/private/v1.0/movies/${id}`)
|
||||
.set({ 'User-Agent': new UserAgent().toString() });
|
||||
return JSON.parse(text);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user