Podcast plugin unable to parse a feed that has non-enclosure entries
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Exaile |
Fix Released
|
Low
|
Dustin Spicuzza |
Bug Description
Version of Exaile: current development source
OS: Gentoo Linux
Behavior: A podcast feed has entries that do not have an mp3 associated with them. An example of such a feed is here:
http://
(Note: The feed cannot be parsed unless the SVN version of feedparser is used in the plugin, per bug#426775.)
Error produced:
Traceback (most recent call last):
File "/home/
tr.
IndexError: list index out of range
Because there's no enclosure on a non-media feed, the podcast plugin returns an empty list that errors out when reading the podcast.
Expected behavior: The feed should at least load all available media episodes and not error out.
Quick, non-good hack:
A try/except message can get past the non-media feeds, allowing Exaile to ignore the portions that have no media. I'm unsure how to check for a list that has no entries in it, because it's not showing up as 'None'. Attached is a quick hack, which will skip over the feed if it is unable to read a media file.
Related branches
Changed in exaile: | |
assignee: | nobody → Adam Olsen (arolsen) |
importance: | Undecided → Low |
milestone: | none → 0.3.1 |
Changed in exaile: | |
assignee: | Adam Olsen (arolsen) → Dustin Spicuzza (dustin-virtualroadside) |
Changed in exaile: | |
status: | Fix Committed → Fix Released |
The patch here should get everything working on podcast feeds that have null-media entries.