Could you add YouTube shortlink (http://youtu.be/...) support to hook emvideo_PROVIDER_extract?
+1 subscribing
subscribe
+1
Needed this for a site I have with embedded video, it's really simple to add -- Edit the file /media_youtube/providers/emvideo/youtube.inc
Find function emvideo_youtube_extract ( line 174 in my version )
and change the return array from
return array( '@youtube\.com/v/([^"\&\? ]+)@i', '@youtube\.com/watch\?v=([^"\& ]+)@i', '@youtube\.com/\?v=([^"\& ]+)@i', );
to
return array( '@youtube\.com/v/([^"\&\? ]+)@i', '@youtube\.com/watch\?v=([^"\& ]+)@i', '@youtube\.com/\?v=([^"\& ]+)@i', '@youtu\.be/([^"\&\? ]+)@i', );
In my case, I didn't even need to clear caches, worked like a charm :) Don't know if you need to update other locations for other types of functionality offered by the module though.
@hexblot
thanks, your patch fixed it for me :)
for me too. Patch to be ported
this has been fixed in the dev version for some time.
Automatically closed -- issue fixed for 2 weeks with no activity.
Comments
Comment #1
ihateie commented+1
subscribing
Comment #2
cappadona commentedsubscribe
Comment #3
Alexander Goncharov commentedComment #4
Anonymous (not verified) commented+1
Comment #5
Anonymous (not verified) commented+1
Comment #6
hexblot commentedNeeded this for a site I have with embedded video, it's really simple to add --
Edit the file /media_youtube/providers/emvideo/youtube.inc
Find function emvideo_youtube_extract ( line 174 in my version )
and change the return array from
to
In my case, I didn't even need to clear caches, worked like a charm :) Don't know if you need to update other locations for other types of functionality offered by the module though.
Comment #7
rv0 commented@hexblot
thanks, your patch fixed it for me :)
Comment #8
Anonymous (not verified) commentedfor me too. Patch to be ported
Comment #9
aaron commentedthis has been fixed in the dev version for some time.