Skip to content

get_artist_audio_features() fails to work on some artists due to preview_url #202

@tnieuwe

Description

@tnieuwe

Hello,

Not sure if this is related to the CRAN removal, but there is an issue with the get_artist_audio_features() function with certain artists for me. For example running:
cur_artist_features <- get_artist_audio_features("Alex G")
Works fine, but running:
cur_artist_features <- get_artist_audio_features("Modest Mouse")
Returns the following error:

Error in `map()`:
i In index: 6.
Caused by error in `dplyr::rename()`:
! Can't rename columns that don't exist.
x Column `preview_url` doesn't exist.
Backtrace:
  1. spotifyr::get_artist_audio_features(cur_artist)
 11. dplyr:::rename.data.frame(...)
 Error in map(.x, .f, ...) : 
Caused by error in `dplyr::rename()`:
! Can't rename columns that don't exist.
x Column `preview_url` doesn't exist.

I'm not sure how to diagnose the issue. Similarly, "Built To Spill" works, but "Chumbawamba" does not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions