The Vimeo media handling is identical to the youtube handling, but I see only the youtube handling in the migrate_extras include. That modules says submit any additional handlers to the parent module (media module.)

Comments

jaxxed’s picture

StatusFileSize
new1.99 KB
jaxxed’s picture

Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch, migrate_extras.media_vimeo.1845616.patch, failed testing.

devin carlson’s picture

Project: D7 Media » Migrate Extras
Version: 7.x-1.x-dev » 7.x-2.x-dev
Component: Miscellaneous » Media
Status: Needs work » Needs review

I think you've got the wrong module.

asherry’s picture

Where is this class located? I still see the MigrateExtrasFileYoutube class but I don't see MigrateExtrasFileVimeo. I'm assuming when you want to implement this class you do

$this->destination = new MigrateDestinationMedia('video', 'MigrateExtrasFileYoutube');

So I would like to also be able to do

$this->destination = new MigrateDestinationMedia('video', 'MigrateExtrasFileVimeo');
jaxxed’s picture

sorry being checked out so long. I'm just not that great at submitting patches. The patch I put above adds the class needed to the media.inc file, in migrate extras

stella’s picture

StatusFileSize
new1.89 KB

This works great for me. I was successfully able to migrate CSV files containing vimeo urls into a media field using this patch.

There appears to be a funny character added to the beginning of the file with the above (can see it when editing in vim), so the attached patch just removes that, no other changes.

craychee’s picture

Issue summary: View changes

Thanks, stella. This worked great for me as well.

This module is deprecated. Perhaps you will consider submitting this for inclusion to https://drupal.org/project/media_vimeo.

cmah’s picture

Thank you, Stella. #7 works for me, and just saved me a ton of time.

mr.baileys’s picture

Title: imgrateExtras integrate: include vimeo » Add Migrate-support for Vimeo media file entities
Project: Migrate Extras » Media Video
Version: 7.x-2.x-dev »
Component: Media » Code
Assigned: jaxxed » Unassigned
Priority: Minor » Normal
StatusFileSize
new1.75 KB

As mentioned by @craychee in #8, Migrate Extras is no longer adding features/migration support for contrib modules, so moving to the Media Vimeo queue.

Patch form #7 is working for me, re-rolled for Media Vimeo. Note that, to use the new class, you'll need to explicitly include it, since including it via the module's .info file would create unnecessary overhead.

    module_load_include('inc', 'media_vimeo', 'includes/media_vimeo.migrate');
    $this->destination = new MigrateDestinationFile('video', 'MigrateFileVimeo');
mr.baileys’s picture

Project: Media Video » Media: Vimeo
Version: » 7.x-2.x-dev

Accidentally selected the wrong project...