Asset should provide its own generation handling as we have have "Generate content", "Generate users", "Generate terms", we should have "Generate assets" and then entityreference support for devel generate should do the rest

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

SebCorbin’s picture

Status: Active » Needs review
FileSize
11.34 KB

And here's a patch.

Tested for Video and Image asset types so far.

Video modules other than youtube need to implement hook_emvideo_generate() that return a random video url.

SebCorbin’s picture

And here the patch with a drush command

SebCorbin’s picture

Modified the default thumbnail to mqdefault (better ratio and quality), also split the video url before '?' character

IRuslan’s picture

Issue summary: View changes
Status: Needs review » Closed (fixed)
FileSize
9.61 KB
2.75 KB

Hi Sebastien,

We checked your patch and seems it's good (i only simply append package = "Media assets" to info file, and small fix about random asset author) . For other video modules i created ticket #2318367: Add support for devel generate video types (except youtube)

Attached new patches/committed to dev.