kurtmckee/feedparser

Parsing channel params with same multiple same elements but different values squashes all values to 1 field

radzhome opened this issue · 0 comments

In the case of this feed:

<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/" xmlns:jwplayer="http://rss.jwpcdn.com/">
<channel>
  <title>pnvdriving</title>
  <description>PNVideo playlist to bridge to YouTube</description>
  <jwplayer:kind>DYNAMIC</jwplayer:kind>
  <jwplayer:feedid>u0iPtP89</jwplayer:feedid>
  <jwplayer:feed_instance_id>8cff50dc-e67e-480a-b81c-ebf2cab00288</jwplayer:feed_instance_id>
  <jwplayer:link rel="next" href="https://cdn.jwplayer.com/v2/playlists/123?format=mrss&amp;internal=false&amp;page_offset=11&amp;page_limit=10"/>
  <jwplayer:link rel="first" href="https://cdn.jwplayer.com/v2/playlists/123?format=mrss&amp;internal=false&amp;page_offset=1&amp;page_limit=10"/>
  <jwplayer:link rel="last" href="https://cdn.jwplayer.com/v2/playlists/123?format=mrss&amp;internal=false&amp;page_offset=1584&amp;page_limit=10"/>
  <item>
 ....

The jwplayer:link gets parsed into a single jwplayer_link key and only for rel=last.. but I was expecting all 3 to be present in a list perhaps.