X-Git-Url: https://git.ao2.it/winfreed.git/blobdiff_plain/2a0ec06af9f57de11d830a077c0fd37080a25d32..b9ebecc89dcf34f0b4c166701e4a5f0b8c8a520c:/winfreed.py diff --git a/winfreed.py b/winfreed.py index a1639c3..13b7580 100755 --- a/winfreed.py +++ b/winfreed.py @@ -79,7 +79,7 @@ def download(pkg): # re pattern from http://stackoverflow.com/questions/8035900 content_disposition = response.info().getheader('Content-Disposition').strip() filename = re.findall("filename=(\S+)", content_disposition)[0] - + if filename == "": filename = urllib2.unquote(os.path.basename(response.geturl())) @@ -145,5 +145,5 @@ if __name__ == "__main__": else: usage() sys.exit(1) - + sys.exit(0)