Trees | Index | Help |
---|
Package Peapod :: Module download :: Class downloadURL |
|
A class to download a single enclosure from a feed. Redirect requests are handled before the download request is made.
A limited number of filetypes are accepted for download, as defined by a hardcoded list of file extensions. In the case where a pattern match fails, a subsequent match is tested based on a list of mime-types.
BitTorrent downloads are handled by an out-of-process application.Method Summary | |
---|---|
__init__(self,
url,
basedir,
tmpdir,
filename,
bittorrent,
bandwidth,
user_agent,
path,
content_type)
| |
Spawn an external process to fetch an enclosure using BitTorrent. | |
Fetch the requested enclosure to a temporary path. |
Class Variable Summary | |
---|---|
int |
blockSize = 4096 |
Method Details |
---|
callbittorrent(self, url, savedir, path)Spawn an external process to fetch an enclosure using BitTorrent. |
get(self)Fetch the requested enclosure to a temporary path. If the file already exists in the temporary location, a simple reget should pick up the download where it previously left off. Once the file has been completely downloaded, it is moved into the proper location. |
Class Variable Details |
---|
blockSize
|
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Sun Feb 13 06:25:12 2011 | http://epydoc.sf.net |