mygpo icon indicating copy to clipboard operation
mygpo copied to clipboard

Some podcasts have no no url

Open adamvoss opened this issue 7 years ago • 1 comments

From @elelay on January 29, 2017 22:3

Yes, it's weird: a podcast in gpodder.net without url! search for Linux Outlaws, you'll only see the first 3 gpodder.net search page shows way more.

Traceback (similar with gtk3 branch...)

1485726984.299862 [gpodder.log] ERROR: Uncaught exception: Traceback (most recent call last):
  File "src/gpodder/gtkui/desktop/podcastdirectory.py", line 267, in update_ui
    self.podcasts_model.load(podcasts or [])
  File "src/gpodder/gtkui/desktop/podcastdirectory.py", line 58, in load
    entry.subscribers, cgi.escape(entry.url)), entry.title, entry.url))
  File "/usr/lib/python2.7/cgi.py", line 1043, in escape
    s = s.replace("&", "&") # Must be done first!
AttributeError: 'NoneType' object has no attribute 'replace'

The fix: don't show results that don't have entry.url.

Copied from original issue: gpodder/gpodder#222

adamvoss avatar Jul 23 '17 14:07 adamvoss

From @thp on January 31, 2017 18:31

We might want to do this server-side. Pinging @stefankoegl

adamvoss avatar Jul 23 '17 14:07 adamvoss