Needs review
Project:
FeedAPI
Version:
6.x-1.x-dev
Component:
Code parser_simplepie
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Oct 2008 at 15:09 UTC
Updated:
2 Jun 2009 at 12:49 UTC
Jump to comment: Most recent file
Comments
Comment #1
geodaniel commentedPerhaps I'm off base here... From looking at the code, it appears as though support for enclosures has not been added to the SimplePie parser in 6.x (despite #228111: Add enclosure (and location) support to FeedAPI Drupal 6 being closed out) as it was in 5.x. I've re-opened that issue.
Should get_latitude and get_longitude support also be added directly into the SimplePie parser in the same way?
Comment #2
geodaniel commentedOk, please ignore this issue. I've updated #228111: Add enclosure (and location) support to FeedAPI Drupal 6 and #265196: Support for the Location module with patches that re-add enclosure support and also location support.
Comment #3
geodaniel commentedI am actually going to re-open this as I believe the raw information should still be passed through to other modules but at present the simplification function (parser_simplepie_simplify_raw_item) strips this information out. Is it intentionally stripping the raw information out, or should it also include a simplified version of the raw information?
I'm interested in this to be able to extract xCal information (as well as the location information, which I provided a patch for in #228111: Add enclosure (and location) support to FeedAPI Drupal 6.
Comment #4
Arto commentedSubscribing.
Comment #5
summit commentedHi,
Would very much know how to get the location_mapper working. Subscribing,
greetings,
Martijn
Comment #6
Krummrey commentedI think having acces to all elements within a feed would be great. Not all feeds adhere to certain standards. Especially when you get to things like mediarss and georss. So having all the information contained in the feed and mapping it out later would be great.
Comment #7
aron novakAs I see the parser_simplepie_simplify_raw_item() is never called. (it should be removed btw. but it's a different story)
What simplepie parser can do in order to extract xCal info?
Comment #8
dubitable commentedHi Aron, it seems like this function is indeed being called (not that I can grasp where...sometimes I find Drupal so freaking opaque...), as my modification has allowed me to import more than just the values for elements that are inside of the 'child' sub-array. Not sure if this is dangerous though; is there a particular reason that this line
...just pulls the one array out? There is more data in there...
Anyways, patch attached. It allowed me to map fields to the non-standard RSS elements in the RSS feed I'd created (I used namespace http://web.resource.org/rss/1.0/modules/event/ to be exact). Not sure if it'll make other elements from other namespaces show up but based on my reading of the SimplePie API, it should.
Comment #9
summit commentedHi,
Trying to get information other than lat/lon on location fields, possible mapping non-standard RSS elements: (http://drupal.org/node/333519#comment-1143948).
Greetings,
Martijn
Comment #10
alex_b commented#8: This looks like a good suggestion to me. Code needs review.
Comment #11
AntiNSA commentedIm trying to use geotagging embedded in feeds from yahoo pipes which included the marker on the map for each rss feed... Do I need to apply this patch? Also using feedapi and feedapi mapper..
Thanks for your help-
Robert
Comment #12
liberatrJust now using Simplepie with Feed Element Mapper on a valid podcast feed, my oprions->raw->enclosure was getting passed an array, not the URL I expected.
I employed the following hack to get to the URL:
Yes, it was really stored in an array key with an empty string. Is this a Simplepie problem?