Handle eventful.com atom feeds (w/nested Atom entries), example:
http://eventful.com/atom/events?page_size=50&sort_order=Date&within=25&units=miles&display=Medium&q=&l=San+Diego+metro+area&t=next+week&c=
This commit is contained in:
parent
8f0551ae91
commit
3aef94c214
@ -99,7 +99,7 @@ def scrub(feed_uri, data):
|
||||
# resolve relative URIs and sanitize
|
||||
for entry in data.entries + [data.feed]:
|
||||
for key in entry.keys():
|
||||
if key == 'content':
|
||||
if key == 'content'and not entry.has_key('content_detail'):
|
||||
node = entry.content[0]
|
||||
elif key.endswith('_detail'):
|
||||
node = entry[key]
|
||||
|
Loading…
x
Reference in New Issue
Block a user