lgallard / qBittorrent-Controller

qBittorrent Controller - An Android app for controlling qBittorrent servers
MIT License
286 stars 58 forks source link

Space and + char in category names #221

Closed lgallard closed 4 years ago

lgallard commented 4 years ago

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

lgallard commented 4 years ago

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.

lgallard commented 4 years ago

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