-
I've been working on my first bridge, but I'm having problems getting the categories to passthrough from the original feed, my code is here So just wondering if anyone could give me some advice, I've figured out most of it from reading other bridges but I've noticed that most of them don't seem to deal with tags. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
At this time, categories (and uid) are not parsed by FeedExpander parseItem. I recommend that you open an issue to track this legitimate feature request. The way to get around this is to use the original newsItem. This works for me:
You can also do a similar thing to extract the uid:
For the rest of your code, L43-L50 are unnecessary unless you are assigning to them (L47) because parent::parseItem() already extracts those keys if they are available. They also cause warnings when the keys are unassigned, like when an article has no enclosure. |
Beta Was this translation helpful? Give feedback.
At this time, categories (and uid) are not parsed by FeedExpander parseItem. I recommend that you open an issue to track this legitimate feature request.
The way to get around this is to use the original newsItem. This works for me:
You can also do a similar thing to extract the uid:
For the rest of your code, L43-L50 are unnecessary unless you are assigning to them (L47) because parent::parseItem() already extra…