We had trained a client on how to paste in the URL's from a YouTube video. However when they created a channel that quickly ended, as it generated URL's like http://www.youtube.com/user/userchannelname#u/u/1/93__orh5sw9tw.

This seemed like a difficult URL to parse and a nice quick fix was to allow them to use the short Share URL that YouTube provides.

http://youtu.bc/93__orh5sw9tw

So attached is a simple patch that adds a codec to allow the usage of these URL's in your node body or CCK fields.

Comments

colincalnan’s picture

StatusFileSize
new679 bytes

For 6.x-3.x-dev

colincalnan’s picture

StatusFileSize
new679 bytes

For 6.x-3.0-beta1

bryancasler’s picture

Status: Patch (to be ported) » Reviewed & tested by the community

+1 for a commit, this should work for D7 as well as D6

blackdog’s picture

Category: bug » feature
Status: Reviewed & tested by the community » Fixed
StatusFileSize
new624 bytes

The regexp can actually be an array, so I committed the attached patch to 6.x & 7.x. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.