Hello,
I'm trying to extract YoutubeVideoIDs using "GetYoutubeVideoIDs". However, it works for some video IDs and not for others.
library(magrittr)
library(vosonSML)
library(stringr)
GetYoutubeVideoIDs(c("https://www.youtube.com/watch?v=0ckMFFUDVws"))
gives ==> "0ckMFFUDVws"
However,
GetYoutubeVideoIDs(c("https://www.youtube.com/watch?v=DKuwF8bOwy0&t=152s"))
gives ==> "DKuwF8bOwy0" instead of "DKuwF8bOwy0&t=152s"
I think that the "&" caracter is the problem but do not knw how to solve it.
Could anyone help please?
Best