jsumners / jsumners/feedparser

media:rating not parsed correctly

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

Nobody has claimed this yet.

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

Description

What steps will reproduce the problem?
1.python
2.import feedparser
3.feed = feedparser.parse(attached.rss)
4.print(feed.entries[0].media_rating)

What is the expected output? 
tv-14 or whatever is the content of the <media:rating> node
What do you see instead?
a dict with all the attributes of the <media:rating> node


What version of the product are you using? 
5.1.2
On what operating system?
Linux, OS X

Original issue reported on code.google.com by a...@gangverk.is on 19 Oct 2012 at 11:53

Attachments:

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 with the attached lol.rss and the feedparser.parse path used in the reproduction, then trace how the media:rating node becomes feed.entries[0].media_rating. The work is done when that value exposes the node's content, such as tv-14, rather than a dictionary of its attributes; verify the original reproduction on Python 5.1.2-compatible behavior.

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
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.