I have tracked down the only instance of youtube.com to this array:
Code:
$passivevideo_sites = array(
array ( // google
'd' => 'video.google',
'm' => 'http://video.google.(?:[a-z]{2,3}|co.uk)/videoplay\?docid=([0-9_-]+)',
'e' => 0
),
array ( // yahoo
'd' => 'video.yahoo.com',
'm' => 'http://video.yahoo.com/watch/([0-9]+)/([0-9]+)',
'e' => 0
),
array ( // youtube
'd' => 'youtube.com',
'm' => 'http://(?:[a-z]{2,3}.)?youtube.com/watch\?v=([a-z0-9_-]{11})',
'e' => 0
)
);
inside functions_passivevideo.php
So it appears that the video must be in the
Code:
http://www.youtube.com/watch?v=StNMmOd4d9E
But what I really need is the word watch to be optional..
http://youtube.com/?v=StNMmOd4d9E
I tried changing the code to:
http://(?:[a-z]{2,3}.)?youtube.com/(watch)?\?v=([a-z0-9_-]{11})[/CODE]
Now it seems that
Code:
http://youtube.com/?v=StNMmOd4d9E
Does not show up at all as the text portion of the url is missing.
So I wonder how I would add
watch if it did not exist? is this possible in RegEx?