lgallard/qBittorrent-Controller

Space and + char in category names

lgallard opened this issue · 2 comments

I recently began having issues with this app since I started saving to a location with a space in the name.

I keep trying to save to T:\folder name\ and the app keeps putting a + between.

Reported by William Bonanno at Google Play & Email

This happens only for torrent links. Currently category name is passed using Volley parameter overriding, and by default url params are encoding using "+" or "%20" as a replacement for spaces, but qBittorremt API doesn't decode the parameter.

The solution is to implement the multipart request as suggested in the API documentation as I did for downloaded torrent files.

A possible solution is using an approach similar to this one.

Another approach by overriding getBody() and getBodyContentType methods as shown here