lgallard / qBittorrent-Controller

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

Encapsulated BuildURL and changed port behaviour #251

Closed simplethemind closed 3 years ago

simplethemind commented 3 years ago

Encapsulated a static BuildURL method. Changed default port number to -1 (just like local_port) and set to remove the ":" part of the URL if it is -1. Changed a few instances where port is sent as part of header and modified those to take into account the new url string without the port number

lgallard commented 3 years ago

@simplethemind thanks for encapsulating the code. It was the result of reusing (copypasting) the same piece of code over and over.

I'm going to compile an APK and release as soon as possible, but first I have to upgrade my environment to be able to use SDK version 29+