jsumners / jsumners/feedparser

Feedparser merges itunes:category with itunes:keywords into 'tags'

Open
#354 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-migrated Namespace-itunes
Dominant language
Python
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

What steps will reproduce the problem?
import feedparser
f = 
feedparser.parse("http://podcastfeeds.nbcnews.com/audio/podcast/MSNBC-NN-NETCAST
-M4V.xml")
f['feed']['tags']

What is the expected output? What do you see instead?
Expected output:
[{'label': None,
  'scheme': u'http://www.itunes.com/',
  'term': u'News & Politics'}]

Instead we get:

[{'label': None,
  'scheme': u'http://www.itunes.com/',
  'term': u'william,bryan,world,politics,political,government,congress,president,campaign,policy,war,information'},
 {'label': None,
  'scheme': u'http://www.itunes.com/',
  'term': u'News & Politics'}]


What version of the product are you using? On what operating system?

Linux, 5.1.1.


Original issue reported on code.google.com by tarjei.h...@gmail.com on 8 May 2012 at 11:19

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue through feedparser.parse with the supplied NBC News podcast feed URL, then trace how iTunes category and keywords are converted into feed['feed']['tags']. Done means the parsed tags preserve the expected iTunes category without incorrectly merging in the keyword list.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.