lcurse icon indicating copy to clipboard operation
lcurse copied to clipboard

Cannot update addon if filename has a space

Open Nuadh opened this issue 7 years ago • 2 comments

As title say, if the download redirect goes to a filename with a space, the client fails to update the addon with the error (in console): Could not open $filename , retrying...5 times, ending with HTTP Error 400: Bad Request.

I fixed the issue by adding a line at line 171 in waitdlg.py: downloadLink = re.sub(r" ", "%20", downloadLink) right below: downloadLink = soup.select(".download-link")[0].get('data-href')

Nuadh avatar Mar 02 '17 19:03 Nuadh

Do you have an example addon? .... So I can test my changes?

ephraim avatar May 01 '17 18:05 ephraim

Back when it was an issue, it was "http://mods.curse.com/addons/wow/quest_completist", if it's fixed now on their side, I don't know.

*Edit: it seems to be fixed on their side now, filename is "QuestCompletist_v107.zip" now, no spaces.

Nuadh avatar May 01 '17 18:05 Nuadh