I'm trying to import a Feedburner RSS. Each post is composed by a title and a description. Within that description there is a mp3 link. The link could be in any part of the text.

Is there a way to extract the mp3 link and place it in a (drupal) field link?

Comments

janebootydoe’s picture

Issue summary: View changes

Did you ever find a solution for this?

megachriz’s picture

Status: Active » Fixed

Yes there is, it is not quite simple though. Instead of using the "Common syndication parser", you can use the "XML Xpath parser" provided by Feeds extensible parsers. You will need to learn Xpath to know how to extract the url from the feed. Something like description/a@href. If the URL is not isolated inside XML-tags, but rather somewhere in the text (for example: <description>Lorem ipsum http://www.example.com/example.mp3 dolor sit amet</description> instead of <description>Lorem ipsum <a href="http://www.example.com/example.mp3">Link</a> dolor sit amet</description> you will probably need to use the "Find replace REGEX" plugin from Feeds Tamper instead. For this you need to learn how regular expressions work.

Status: Fixed » Closed (fixed)

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