Closed (fixed)
Project:
FeedAPI
Version:
6.x-1.8
Component:
Code feedapi (core module)
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Aug 2009 at 18:24 UTC
Updated:
2 Oct 2009 at 08:00 UTC
In _feedapi_call_parsers() the module_invoke for secondary parsers passes FALSE instead of the parser's settings array, as done for the primary parser. This appears to be a simple oversight, perhaps due to previous feedapi api changes I am unaware of. Here's a patch, please review.
| Comment | File | Size | Author |
|---|---|---|---|
| feedapi-secondary_parser_settings.patch | 793 bytes | cedarm |
Comments
Comment #1
aron novakThank you, this is a good catch!
May i ask you that what is the use-case for the secondary parser? The majority of FeedAPI installations use one parser.
Comment #2
cedarm commentedWe have a feed that will only supply numeric tag ids and not human readable tags. But the service does have an API we can call to get the mapping of tag id to text, as well as the "parent tag id". Our secondary parser has a setting to specify which parent ids to treat as a vocabulary, so the output of the parser can give more than one array of tags. These can then be mapped (with feedapi_mapper) to different Drupal vocabularies.
(And, since we now have the secondary parser, we threw in our own raw mapping of our namespaced tags, until #199360: Add namespace support to Parser Common Syndication and #552092: Add namespace support to Parser SimplePie can be resolved. But we'll likely just leave it there so we don't have to redo our mappings.)
Comment #3
aron novakcommitted, thank you