feedparser icon indicating copy to clipboard operation
feedparser copied to clipboard

enclosure not parsed

Open wong2 opened this issue 3 years ago • 2 comments

demo: https://replit.com/@wong2333/feed-1 the rss feed https://feeds.transistor.fm/means-of-creation has enclosure in its items, but not parsed.

wong2 avatar Sep 04 '21 08:09 wong2

it did parse. attr enclosures not enclosure

In [169]: rs=feedparser.parse('https://feeds.transistor.fm/means-of-creation')

In [170]: rs.entries[-1].enclosures
Out[170]: 
[{'length': '53314184',
  'type': 'audio/mpeg',
  'href': 'https://media.transistor.fm/e1895fcc/6af802bd.mp3'}]

anig1scur avatar Sep 22 '21 11:09 anig1scur

--> 320         elif key == 'enclosures':
    321             norel = lambda link: FeedParserDict([(name,value) for (name,value) in list(link.items()) if name!='rel'])

anig1scur avatar Sep 22 '21 11:09 anig1scur