I'm attempting to create first class nodes from my youtube rss feed onto my site, as described here:

http://zivtech.com/blog/module-mashup-creating-a-feed-embedded-videos-us...
http://zivtech.com/video-cck/thickbox/788/425/350/field_video_emfield

The trouble I'm having is that the youtube url format used in the youtube rss feed is not the same as the url formats supported by the module. The url format in the feed is:

http://www.youtube.com/?v=kuOTRdn6mFg

Whereas the module only appears to parse URLs in this format:

http://www.youtube.com/watch?v=kuOTRdn6mFg
http://www.youtube.com/v/kuOTRdn6mFg

The following patch made things work on my site:

Index: contrib/video_cck/providers/youtube.inc
===================================================================
--- contrib/video_cck/providers/youtube.inc (revision 68)
+++ contrib/video_cck/providers/youtube.inc (working copy)
@@ -151,6 +151,7 @@
   return array(
     '@youtube\.com/v/([^"\&]+)@i',
     '@youtube\.com/watch\?v=([^"\&]+)@i',
+    '@youtube\.com/\?v=([^"\&]+)@i',
   );
 }
CommentFileSizeAuthor
#1 youtube.v.patch.txt258 bytessillygwailo

Comments

sillygwailo’s picture

StatusFileSize
new258 bytes

+1 to this patch. Attached one without the trailing comma, applied to DRUPAL-5--1-0. (Full credit to forkmantis if it gets committed.)

alex ua’s picture

Status: Active » Fixed

This was already placed in the 5.x-dev version a while back. We'll release a 5.x-1.1 to avoid any further confusion.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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