diff --git a/airtime_mvc/application/models/Schedule.php b/airtime_mvc/application/models/Schedule.php index ce3c6ca61..1c6231254 100644 --- a/airtime_mvc/application/models/Schedule.php +++ b/airtime_mvc/application/models/Schedule.php @@ -955,7 +955,7 @@ SQL; $uri = $file->getAbsoluteFilePath(); $baseUrl = Application_Common_OsPath::getBaseDir(); - $downloadURL = "https://".$_SERVER['HTTP_HOST'].$baseUrl."rest/media/$media_id/download?verify=False"; + $downloadURL = "https://".$_SERVER['HTTP_HOST'].$baseUrl."rest/media/$media_id/download"; $filesize = $file->getFileSize(); self::createFileScheduleEvent($data, $item, $media_id, $uri, $downloadURL, $filesize); diff --git a/python_apps/pypo/pypofile.py b/python_apps/pypo/pypofile.py index 998c7bd26..ab985eb37 100644 --- a/python_apps/pypo/pypofile.py +++ b/python_apps/pypo/pypofile.py @@ -73,7 +73,7 @@ class PypoFile(Thread): url = media_item['download_url'] with open(dst, "wb") as handle: - response = requests.get(url, auth=requests.auth.HTTPBasicAuth(username, ''), stream=True) + response = requests.get(url, auth=requests.auth.HTTPBasicAuth(username, ''), stream=True, verify=False) if not response.ok: raise Exception("%s - Error occurred downloading file" % response.status_code)