SimplePie parsing to Find Youtube Video link

Knight1234

New Member
I'm using SimplePie to parse our church RSS Feed which contains weekly sermons, both audio and video. I'm able to get the title and mp3 link, but having a difficult time getting the youtube link. Below is a sample of what is in the XML feed containing the youtube video.It's using \[code\][CDATA]\[/code\]I'm using \[code\]$item->get_content()\[/code\], but that doesn't seem to contain any of the tag data below. The url for the feed is http://lakeforest.org/feed. When I bring this url up in the browser I can see the embedded youtube video. Any help would be greatly appreciated.NOTE: - i commented the html below for display only\[code\]<!--<description><![CDATA[Huntersville Campus Mike Moses, Lead Pastor Series Discussion Questions: SHAPE, Part 2 Spiritual Gifts Inventory VIDEO AUDIO]]></description> <content:encoded><![CDATA[<h3>Huntersville Campus</h3><p>Mike Moses, Lead Pastor<br /><a href="http://lakeforest.org/wp-content/uploads/2013/01/SDQ_SHAPEPt2.pdf">Series Discussion Questions: SHAPE, Part 2</a><br /><a href="http://www.churchgrowth.org/cgi-cg/gifts.cgi?intro=1 <http://www.churchgrowth.org/cgi-cg/gifts.cgi?intro=1" target="_blank">Spiritual Gifts Inventory</a></p><h4>VIDEO</h4><p><iframe width="420" height="315" src="http://www.youtube.com/embed/4Uv8U8c6isg" frameborder="0" allowfullscreen></iframe></p><h4>AUDIO</h4><img src="http://feeds.feedburner.com/~r/LakeForest/~4/qMoLVpI1tGI" height="1" width="1"/>]]> -->\[/code\]
 
Back
Top