You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error in get_playlist_items(filter = list(playlist_id = playlist_id), :
max_results must be a value between 0 and 50.
Solution
The solution to fix this is to disable the stop error within get_playlist_items
get_playlist_items <- function(filter = NULL, part = "contentDetails",
max_results = 50, video_id = NULL,
page_token = NULL, simplify = TRUE, ...) {
### DISABLE THIS --->
# if (max_results < 0 || max_results > 50) {
# stop("max_results must be a value between 0 and 50.")
# }
valid_filters <- c("item_id", "playlist_id")
if (!(names(filter) %in% valid_filters)) {
stop("filter can only take one of the following values: item_id, playlist_id.")
}
# [...]
I'll send a pull request.
The text was updated successfully, but these errors were encountered:
thieled
added a commit
to thieled/tuber
that referenced
this issue
Apr 2, 2024
Problem
When
max_results
is set > 50 inget_playlist_items
, tuber returns an error, even though pagination-handling is implemented in the function.Repex
Assumes a valid yt_oauth:
Solution
The solution to fix this is to disable the stop error within
get_playlist_items
I'll send a pull request.
The text was updated successfully, but these errors were encountered: