Closed lay3r closed 1 year ago
Do you have a sample Youtube link that's not working? I just tested one and it seemed fine
I think you have to use regex to parse youtube video id
for example:
/^(?:https?:\/\/)?(?:www\.|m\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=|attribution_link\?a=.+?watch.+?v(?:%|=)))((\w|-){11})(?:\S+)?$/
It works if the ?feature=shared bit is removed--looks like the current code doesn't like URL parameters
Do you have a sample Youtube link that's not working? I just tested one and it seemed fine