Added an optional parameter to access.py's post function, as the downloads/add/ endpoint's input must be formatted "using “application/x-www-form-urlencoded” (or “multipart/form-data” for file upload)". This allowed me to fix Download.add_download_task_from_url, but I have a big hunch that Download.add_download_task_from_file could also be affected by this issue.
I also fixed Download.add_download_task_from_url's documentation that previously indicated that its parameter was supposed to be a string even though the typing indicated in the function declaration is of a Dict[str, Any]. I would also suggest referencing the download_url_schema variable in Download.add_download_task_from_url's documentation.
PS : Sorry for the typo in the commit name on my side !
Tests results (tell me if that's not what you're looking for) :
Added an optional parameter to
access.py
'spost
function, as thedownloads/add/
endpoint's input must be formatted "using “application/x-www-form-urlencoded” (or “multipart/form-data” for file upload)". This allowed me to fixDownload.add_download_task_from_url
, but I have a big hunch thatDownload.add_download_task_from_file
could also be affected by this issue. I also fixedDownload.add_download_task_from_url
's documentation that previously indicated that its parameter was supposed to be a string even though the typing indicated in the function declaration is of aDict[str, Any]
. I would also suggest referencing thedownload_url_schema
variable inDownload.add_download_task_from_url
's documentation.PS : Sorry for the typo in the commit name on my side !
Tests results (tell me if that's not what you're looking for) :