Skip to content

Commit

Permalink
fix(play/playlist): youtube part parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
eritislami committed Sep 18, 2021
1 parent 35f13be commit ab9db1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion commands/play.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ module.exports = {
}
} else {
try {
const results = await youtube.searchVideos(search, 1, { part: "snippet" });
const results = await youtube.searchVideos(search, 1, { part: "id" });

if (!results.length) {
message.reply(i18n.__("play.songNotFound")).catch(console.error);
Expand Down
2 changes: 1 addition & 1 deletion commands/playlist.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ module.exports = {
}
} else {
try {
const results = await youtube.searchPlaylists(search, 1, { part: "snippet" });
const results = await youtube.searchPlaylists(search, 1, { part: "id" });
playlist = results[0];
videos = await playlist.getVideos(MAX_PLAYLIST_SIZE, { part: "snippet" });
} catch (error) {
Expand Down

0 comments on commit ab9db1f

Please sign in to comment.