Fancy password protected feed detection/support (bug 225)
commit644bfe987a5b8d4b6ed9515cde1d271b0c63cfe1
authornikosapi <me@nikosapi.org>
Mon, 20 Oct 2008 04:17:22 +0000 (20 00:17 -0400)
committerThomas Perl <thp@perli.net>
Tue, 21 Oct 2008 21:26:49 +0000 (21 23:26 +0200)
treef84543912bd619cfb571d29fdfaec04c6a95bef0
parentb6b0e301e94e3aee01f3b66bb910034a02294035
Fancy password protected feed detection/support (bug 225)

cache.py: Make the fetch function aware of 401 errors as well as a channel's
    username and password attributes. The function will create the
    appropriate url if it needs to.

gui.py: Add a new dialog to handle username and password input.
    Modify add_new_channel to be aware of 401 errors generated by a
    podcastChannel's load() function. This means that the user no longer
    needs to enter a funky-looking url to get password-protected feeds to
    work. If a feed requires authentication, the user will be prompted.

    Fix a bug where the "add podcast url" entry wasn't reset after adding
    a feed that looked like a web page.

libpodcasts.py: Make podcastChannel.load() throw a HTTPAuthError exception
    if a 401 error occurs when downloadind the feed.
src/gpodder/cache.py
src/gpodder/gui.py
src/gpodder/libpodcasts.py