As far as i know, when i add a Canadian Video in the URL provided by CCK video, from Google Video, it doesn't display the video.
However, if i grab a USA video, from the Google videos, it works!

Does it have to do with the URL ending in .ca??

Comments

Gianfilippo’s picture

It happens with Italian Google Video also. I have to swith the URL from video.google.it to video.google.com.

aaron’s picture

Assigned: Unassigned » aaron

i have to write new regex patterns for this. unfortunately, unless i can find a pattern that matches all the various international google services (which there might well be), and/or they open their api, we have to do each country on a case-by-case basis. it isn't too hard to do that, but i won't have time until next week, since i'm out of town.

aaron

Shane Birley’s picture

Excellent. I have been experiencing this issue as well. Any update or and address we need to send beer to?

extrabigmehdi’s picture

Status: Active » Reviewed & tested by the community

hi,
here's my solution.
In the file google.inc and look for the function video_cck_google_extract.
For convenience I copy the orignal lines:

function video_cck_google_extract($embed) {
  return array(
    '@http://video\.google\.com/videoplay\?docid=([^\&]*)\&@',
    '@http://video\.google\.com/videoplay\?docid=(.*)@',
  );
}

Now replace the function with this one:

function video_cck_google_extract($embed) {
  return array(
    '@http://video\.google\.[a-z]{2,4}/videoplay\?docid=([^\&]*)\&@',
    '@http://video\.google\.[a-z]{2,4}/videoplay\?docid=(.*)@',
  );
}

the patten will accept all domain like video.google.fr , video.google.ca etc....
i.e any domain made of letters like fr, ma, ca (up to 4 letters).

Note: I travel tomorrow, and might not be available this week (if you need an other reply).

aaron’s picture

Status: Reviewed & tested by the community » Fixed

thanks, extrabigmehdi! got your patch in there, works great. i went ahead and expanded it so that the admin can also determine which server domain to serve the video from (and links), so they can be served from google.it, google.ca, etc. this can optionally be set at admin/content/video_cck now, although it's not necessary to be able to parse from videos in other domains.

Anonymous’s picture

Status: Fixed » Closed (fixed)