Changed how PYPO's download URL is created
This commit is contained in:
parent
687548ec68
commit
2c760f4ba6
|
@ -70,7 +70,9 @@ class PypoFile(Thread):
|
|||
config = self.read_config_file(CONFIG_PATH)
|
||||
CONFIG_SECTION = "general"
|
||||
username = config.get(CONFIG_SECTION, 'api_key')
|
||||
url = media_item['download_url']
|
||||
host = config.get(CONFIG_SECTION, 'base_url')
|
||||
#url = media_item['download_url']
|
||||
url = "http://%s/rest/media/%s/download" % (host, media_item["id"])
|
||||
|
||||
with open(dst, "wb") as handle:
|
||||
self.logger.info("----------")
|
||||
|
|
Loading…
Reference in New Issue