Skip to content

Commit

Permalink
fix issue when downloading file under windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ahasverus committed Jan 19, 2024
1 parent fdeaf28 commit 0428886
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/get_cover.R
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ get_cover <- function(imdb_id, path = "./covers") {
utils::download.file(
url = image_url,
destfile = file.path(path, paste0(imdb_id, ".jpg")),
quiet = TRUE
quiet = TRUE,
mode = "wb"
)},
error = function(e){}
)
Expand Down

0 comments on commit 0428886

Please sign in to comment.