fb_player_match_logs with duplicate end years
XxArcaiCxX opened this issue · 1 comments
XxArcaiCxX commented
It appears that when getting the match logs from players that have two same years as the season end year (when they transfer between leagues who have different calendars) the function is unable to choose between the seasons
> messi_summary2022 <- fb_player_match_logs("https://fbref.com/en/players/d70ce98e/Lionel-Messi", season_end_year = 2022, stat_type = 'summary')
> messi_summary2023 <- fb_player_match_logs("https://fbref.com/en/players/d70ce98e/Lionel-Messi", season_end_year = 2023, stat_type = 'summary')
Error in httr::handle(url) : length(url) == 1 is not TRUE
> busquets_summary2022 <- fb_player_match_logs("https://fbref.com/en/players/5ab0ea87/Sergio-Busquets", season_end_year = 2022, stat_type = 'summary')
> busquets_summary2023 <- fb_player_match_logs("https://fbref.com/en/players/5ab0ea87/Sergio-Busquets", season_end_year = 2023, stat_type = 'summary')
Error in httr::handle(url) : length(url) == 1 is not TRUE
tonyelhabr commented
Looks like a bug. Addressing with #329.