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

get_show_episodes is not working, potential fix #197

Open
sydneyDeMets opened this issue Mar 28, 2023 · 1 comment
Open

get_show_episodes is not working, potential fix #197

sydneyDeMets opened this issue Mar 28, 2023 · 1 comment

Comments

@sydneyDeMets
Copy link

I'm not great at programming so I'm sorry if I sound dumb.

That said, it seems like the problem is related to the scopes function. When I altered the link in the scopes function to this:

scopes <- function() {
xml2::read_html("https://developer.spotify.com/documentation/web-api/concepts/scopes") %>%
rvest::html_elements("code") %>% rvest::html_text() %>%
unique()
}

get_show_episodes started working. It's possible this issue is related to Spotify's recent revamping of their API.

Hopefully y'all can fix this.

Thank you!

@aaelony-aeg
Copy link

I haven't used this, but perhaps making the url an arg (with the default that worked for you) might be a good path forward.

scopes <- function(api_url = "https://developer.spotify.com/documentation/web-api/concepts/scopes") {
xml2::read_html(api_url) %>%
rvest::html_elements("code") %>% rvest::html_text() %>%
unique()
}

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

No branches or pull requests

2 participants