I have been searching everywhere trying to figure this out, but no amount of looking has come up with a solution yet. I have an RSS feed from Blip.tv that has elements which go beyond the scope of the default settings in FeedAPI Mapper. I simply want to map an element that lies deeper than four arrays into the feed (about 6). Is this a setting within the FeedAPI Mapper module or in the parser (Simplepie)?

I looked through the Simplepie issues queue and it seemed pretty dead over there. Sorry if this is something that has been easily answered previously... It seems like it ought to be darn simple to just go a couple levels deeper. Thanks very much for any help.

Comments

jacobmn’s picture

Component: User interface » Documentation
jacobmn’s picture

Title: Going Deeper with Feed Elements » Going Deeper into Feed Element arrays
Component: Documentation » Code

For the benefit of anyone else out there trying to get more out of complex feeds this solution will work. Simply take out the last [] from line 150 of parser_simplepie.module:

$curr_item->options->enclosures[$type][$subtype][] = $enclosure;

So that it becomes:

$curr_item->options->enclosures[$type][$subtype] = $enclosure;

This will only get you one level deeper as far as I can tell, and you have the downside of having modified the module itself, but at least with the feed I was trying to pull info from this did the trick.

I left this in the Feed Element Mapper module area since it seems to me that this would only apply when mapping, but let me know if I'm wrong.