Active
Project:
Feed Element Mapper
Version:
6.x-1.3
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
21 Apr 2010 at 04:21 UTC
Updated:
23 Apr 2010 at 22:14 UTC
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
Comment #1
jacobmn commentedComment #2
jacobmn commentedFor 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.