cenkalti / putio.py

A python wrapper for put.io APIv2
http://put.io
MIT License
72 stars 41 forks source link

Fix broken download function #55

Closed flamechair closed 4 years ago

flamechair commented 4 years ago

self._get_link() only returns the request's url, not the url JSON key in the request response.

So just make the request ourselves, check the request status_code, and parse the url JSON key out of the response if we get a 2xx code.