Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Ignore invalid episode items (bug 934)
In case the episode list is in an inconsistent
state, we simply ignore that episode an continue
with the rest.
  • Loading branch information
thp committed May 28, 2010
1 parent 96cd541 commit b4886df
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/gpodder/gui.py
Expand Up @@ -2124,7 +2124,11 @@ def play_or_download(self):
(model, paths) = selection.get_selected_rows()

for path in paths:
episode = model.get_value(model.get_iter(path), EpisodeListModel.C_EPISODE)
try:
episode = model.get_value(model.get_iter(path), EpisodeListModel.C_EPISODE)
except TypeError, te:
log('Invalid episode at path %s', str(path), sender=self)
continue

if episode.file_type() not in ('audio', 'video'):
open_instead_of_play = True
Expand Down

0 comments on commit b4886df

Please sign in to comment.