Skip to content

Commit

Permalink
fix issue with episode list display and error trapping
Browse files Browse the repository at this point in the history
  • Loading branch information
mwhickson committed Nov 23, 2024
1 parent 0ee18ec commit 2d6745a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tuipod/ui/podcast_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,14 @@ def _action_episode_row_highlighted(self, event: DataTable.RowSelected) -> None:
break

def _action_podcast_row_selected(self, event: DataTable.RowSelected) -> None:
episode_list = self.query_one(EpisodeList)
table = episode_list.query_one(DataTable)
table.loading = True
table.clear()

try:
self.current_podcast.get_episode_list()

episode_list = self.query_one(EpisodeList)
table = episode_list.query_one(DataTable)
table.loading = True
table.clear()

for e in self.current_podcast.episodes:
row_key = json.dumps((e.id, e.url))
table.add_row(e.title, e.duration, e.pubdate, key=row_key)
Expand Down

0 comments on commit 2d6745a

Please sign in to comment.