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',
);
}
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | youtube.v.patch.txt | 258 bytes | sillygwailo |
Comments
Comment #1
sillygwailo+1 to this patch. Attached one without the trailing comma, applied to DRUPAL-5--1-0. (Full credit to forkmantis if it gets committed.)
Comment #2
alex ua commentedThis 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.
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.