diff --git a/ovh-factures.py b/ovh-factures.py index 199b706..61ae9f5 100755 --- a/ovh-factures.py +++ b/ovh-factures.py @@ -16,7 +16,7 @@ password = conf['nextcloud']['password'] client = ovh.Client() bills = client.get('/me/bill') for bill in bills: - url="https://nextcloud.hyrule.ovh/nextcloud/remote.php/dav/files/seb/Documents/Factures/OVH/" + url = conf['nextcloud']['url_factures'] details = client.get('/me/bill/%s' % bill) r = requests.get(details['pdfUrl'], stream=True) file_path = "/tmp/" + bill + ".pdf"