Support downloads without content-length header (bug 535)
commit2e20b27fdc33b79bf75fa5f75f4eb53950bf9f3c
authorThomas Perl <thp@thpinfo.com>
Tue, 1 Sep 2009 12:37:11 +0000 (1 14:37 +0200)
committerThomas Perl <thp@thpinfo.com>
Tue, 1 Sep 2009 12:37:11 +0000 (1 14:37 +0200)
tree12dcb4f89b3b2574785a64e4c4845c30a7226aab
parenta860f5786ede7fc30f6cdd15b9d3a7def8c9097f
Support downloads without content-length header (bug 535)

Some servers, like the one serving "Bloomberg" episodes
do not send a "Content-length" header in their HTTP
response, which made gPodder fail to download files.

This patch fixes the issue and also re-calculates the
file size after the download has completed, so the real
file size appears after the file has been downloaded.
src/gpodder/download.py