HaveF / feedparser

Automatically exported from code.google.com/p/feedparser
Other
0 stars 0 forks source link

map `description_detail` to `summary_detail` #325

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Take a feed which has a description
2. Look for the key "description_detail"
3. It won't work because it's stored under "subtitle_detail"

What is the expected output? What do you see instead?

Nada

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

Please provide any additional information below.

(Ignore the revision # below, it's from our source.)
The fix is simple, there needs to be a keymap for description_detail just as 
there is for copyright_detail and tagline_detail.

Index: feedparser.py
===================================================================
--- feedparser.py   (revision 23508)
+++ feedparser.py   (working copy)
@@ -286,6 +286,7 @@
               'date': 'updated',
               'date_parsed': 'updated_parsed',
               'description': ['summary', 'subtitle'],
+              'description_detail': ['summary_detail', 'subtitle_detail'],
               'url': ['href'],
               'modified': 'updated',
               'modified_parsed': 'updated_parsed',

Original issue reported on code.google.com by keehinck...@gmail.com on 3 Feb 2012 at 4:17

GoogleCodeExporter commented 9 years ago
Fixed in r677. Thanks for reporting this!

Original comment by kurtmckee on 4 Feb 2012 at 8:35