Problem/Motivation
In #3301795: Add support for Brightcove videos support for Brightcove was added, however, it appears that the regular expression to match the Brightcove URL might be a little too restrictive/presumptious.
According to https://studio.support.brightcove.com/publish/choosing-correct-embed-code.html not all URLs contain 'default_default' which is part of what the regular expression matches, rather the first 'default' could be alphanumeric or could contain dashes, such as;
rf1BTdKk6M_default
or
a4d923de-cccc-4a40-9756-31e8368d530d_default
So the regular expression should probably be updated to support this format too.
Steps to reproduce
Attempt to add the following video: https://players.brightcove.net/1507807800001/rf1BTdKk6M_default/index.ht...
Proposed resolution
Update the regular expression to not hardcode 'default_default'.
Remaining tasks
Add patch
User interface changes
None
API changes
None
Data model changes
None
Issue fork media_remote-3312167
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
owenbush commentedReady for review.
Comment #6
marcoscanoThanks for contributing! This looks good, merged!