Hello, Doug! Your E-Mail address is not working, so I'll try to post here so you can get this message:
I'm happily using a customized version of python-feedcache with gPodder (gpodder.berlios.de); only now I've just found a small problem: feeds that are redirected (301, 302) will not be cached, because you are only checking for the "200" status code. So, instead of writing
elif status == 200:
you should probably have something like
elif status in (200, 301, 302, 307):
(see http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html)
Hope this can find its way into your great python-feedcache package!
2 comments:
Hello, Doug! Your E-Mail address is not working, so I'll try to post here so you can get this message:
I'm happily using a customized version of python-feedcache with gPodder
(gpodder.berlios.de); only now I've just found a small problem: feeds
that are redirected (301, 302) will not be cached, because you are only
checking for the "200" status code. So, instead of writing
elif status == 200:
you should probably have something like
elif status in (200, 301, 302, 307):
(see http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html)
Hope this can find its way into your great python-feedcache package!
Thanks,
Thomas
Hi, Thomas,
Thanks for the tip. I replied to the email address I had for you, so let's see if that works.
Post a Comment