drupal
Submitted by admin on Sat, 2008-01-05 14:31.
Googtube Module does not work
Submitted by federico on Sat, 2008-01-05 14:27.body:
Today i tried the googtube module (http://drupal.org/project/googtube) for drupal.
I was looking for the simplest way to embed videos in my articles and Googtube offers a simple way to do that.
Problem: it does not work propely with video.google.it
Solution: I simpli modified the regular expression inside the googtube.module that looks for google-video links.
So i changed this:
preg_replace_callback('!(((http://)?)|(^./))(((www.)?)|(^./))video\.google\.(com|ca|it)(\.[a-z]+)?/videoplay[?]docid=([^\[\]()<.,\s\n\t\r\-]+)!i', 'googtube_google', $text);
With this:
preg_replace_callback('!(((http://)?)|(^./))(((www.)?)|(^./))video\.google\.(com|ca|it)(\.[a-z]+)?/videoplay[?]docid=([-]?[0-9]+)!i', 'googtube_google', $text);

