The provider doesn't seem to support videos in groups. The attached patch gets these formats working:

https://vimeo.com/28701313
http://vimeo.com/groups/timelapsevideos/videos/38721614
<iframe src="http://player.vimeo.com/video/27660601?title=0&amp;byline=0&amp;portrait=0" width="660" height="371" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>

Comments

drewish’s picture

StatusFileSize
new8.76 KB
wroxbox’s picture

Hey!

I compared to Youtube patch by you and there you have the responce->code testing after request. Maybe add to vimeo calls too?

static public function valid_id($id) {
    $url = 'http://gdata.youtube.com/feeds/api/videos/'. $id;
    $response = drupal_http_request($url, array('method' => 'HEAD'));
    if ($response->code != 200) {
      throw new MediaInternetValidationException(t('The YouTube video ID is invalid or the video was deleted.'));
    }
    return TRUE;
  }
drewish’s picture

StatusFileSize
new1.28 KB

Oh whoops, that included some other patches. Here's the cleaner version. I think #1422980: Set the title of the file entity to the fetched title of the video is relevant for the comment you posted.

drewish’s picture

So over on #1410462: Vimeo Channel links (Unable to handle the provided embed string or URL.) it was pointed out that channels put the video id into the hash like this:

http://vimeo.com/channels/hd#30984371
drewish’s picture

StatusFileSize
new1.37 KB

This incorporates that URL structure.

drewish’s picture

Status: Needs review » Fixed

wroxbox, I'll look at validation over on #1292360: Validate the vimeo ID before adding to the library; improve regex.. I'm going to push this as is.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.