Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
Lakshya0257 committed Jul 17, 2023
1 parent acf99bf commit 97f695b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const REDIRECT_URI = "http://localhost:5173/";
// export const REDIRECT_URI = "https://luna-5e3d7.web.app";
// export const REDIRECT_URI = "http://localhost:5173/";
export const REDIRECT_URI = "https://luna-5e3d7.web.app";
export const CLIENT_ID = "c124698803fb434d863636cef864d751";
export const CLIENT_SECRET = "c35e05f66d734ab8ae3cabef4c43aae1";
9 changes: 5 additions & 4 deletions spotify/play_track/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,12 @@ export const playSong = async (data, via, inde) => {
})
.catch(error => {
if (error.response && error.response.status === 502) {
retry++;
console.error('Error playing song:', error);
playSong(data, 'retry');
console.log('Failed to play song');
// retry++;
// console.error('Error playing song:', error);
// playSong(data, 'retry');
}
else if(retry===3) {
else if(retry>=3) {
console.log('You dont have permission to access this, please purchase a subscription');
}
else {
Expand Down

0 comments on commit 97f695b

Please sign in to comment.