Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
YouTube provides it's own unique URL shortener (youtu.be). I t may be a good idea to support that url for embedding videos.
Example The video BElow has the following addresses provided by Youtube.
LONG: http://www.youtube.com/watch?v=bh-BwFNNAGc
SHORT: http://youtu.be/bh-BwFNNAGc
Currently the short address isn't supported.
The following patch adds that url pattern to the hook emvideo_PROVIDER_extract function (emvideo_youtube_extract).
Comment | File | Size | Author |
---|---|---|---|
#1 | media_youtube_1045824.patch | 953 bytes | arcaneadam |
Comments
Comment #1
arcaneadam CreditAttribution: arcaneadam commentedpatch file
Comment #2
aaron CreditAttribution: aaron commentedcommitted, thanks! in the future, please set the status to 'needs reviews' when there's a patch attached to an issue, so it will get more attention.
Comment #4
dagomar CreditAttribution: dagomar commentedsorry to open a closed issue, but this doesnt work in drupal 7 with media:youtube 7.x-1.0-alpha4
tnx dagomar
Comment #5
aaron CreditAttribution: aaron commentedthanks, got that at http://drupalcode.org/project/media_youtube.git/commit/41848b5