mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-17 16:19:12 +02:00
Fix
This commit is contained in:
@@ -66,7 +66,9 @@ module.exports = class RottenTomatoesCommand extends Command {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async fetchMovie(id) {
|
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);
|
return JSON.parse(text);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user