Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save a show's tracklist to Spotify #243

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

markspolakovs
Copy link
Member

No description provided.

@markspolakovs markspolakovs requested review from Brookke, mstratford and ColinRoitt and removed request for Brookke May 18, 2020 11:37
})
}

async function savePlaylistToSpotify(thisEl, tracklistContainerEl, showName) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using async functions => doesn't support IE11

const state = (Math.random() * 1e6).toString(10);
const authWindow = window.open(
"https://accounts.spotify.com/authorize?" +
"client_id=59c103779bf341fb80f8ac527ea05808" +
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to become a config variable

@mstratford
Copy link
Member

Just testing this... At least on localhost I get a 404 to /_redirect after authing Spotify, is that expected?

@markspolakovs
Copy link
Member Author

@mstratford That's expected, the JS should catch the redirect and close the popup. If it doesn't, now that's a bug.

"https://accounts.spotify.com/authorize?" +
"client_id=59c103779bf341fb80f8ac527ea05808" +
"&response_type=token" +
"&redirect_uri=" + encodeURIComponent("http://localhost:3000/_redirect") +
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Er, that shouldn't be localhost

@mstratford
Copy link
Member

I guess I should look at this lol.

@Brookke Brookke removed their request for review May 26, 2022 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants