Closed JesperDramsch closed 4 years ago
Looks good, (that was my original intention but it slipped my mind), except the Found videoIds.length videos
is unnecessary since I log it on line 93
Oh! I did not make that connection.
What do you think of changing
i -= j;
Logger.log("Added "+i+" videos to playlist. Error for "+j+" videos.")
to just
Logger.log("Added "+(videoIds.length - j)+" videos to playlist. Error for "+j+" videos.")
It's a bit clearer this way and i = videoIds.length anyways
Also maybe change j
to errorCount
for clarity?
Thanks for your help
Changing the variable is fine of course. I changed i
, as I figured we might be able to use that later for successful additions, because you rightly pointed out it would be redundant with videoIds.length
.
Changed the log to include the total number of videos found and how many could be added.