drupal

The answer you entered to the math problem is incorrect.

Googtube Module does not work

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);

Syndicate content