[gpodder-devel] [Patch] Password protected download servers

  • From: nikosapi at gmail.com (nikosapi)
  • Date: Sat, 14 Jul 2007 22:28:04 -0400

Hello!

I just signed up for the distorted view show member's feed (you get extra show 
content, etc). The problem is that the download server is password protected 
which means the podcast client must understand how to do basic http 
authentication.

Attached is a patch against svn revision 351 to add the ability to download 
podcasts from password protected server directories. It stores the username 
and password in the index.xml files in each local podcast directory. The 
passwords are obfuscated using a simple mapping table and the 
string.translate function. I know this isn't secure but I don't think it's 
advisable to store the passwords in plaintext either. The username and 
password are set via the "Advanced" tab in the "Edit channel information" 
dialogue. 

If you would like to test it, I set up a feed and password protected directory 
on my server (with a 5 second "podcast" I made). Here's the info for that:
feed url: http://nikosapi.org/test_protected_feed/feed.xml
username: user01
password: testfeed

Also, I fixed a little bug that would cause gPodder to freeze when loading a 
cover file with 0 length.

nick
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gpodder.glade-r351-password.patch
Type: text/x-diff
Size: 5666 bytes
Desc: not available
URL: 
<https://lists.berlios.de/pipermail/gpodder-devel/attachments/20070714/68ad99da/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gpodder-r351-password.patch
Type: text/x-diff
Size: 6538 bytes
Desc: not available
URL: 
<https://lists.berlios.de/pipermail/gpodder-devel/attachments/20070714/68ad99da/attachment-0001.patch>

Other related posts: