GetYoutubeVideoIDs function problem

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

This is not part of the video id, it is a URL parameter that takes you to a specific time point on the video.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.