erickok / transdroid

Manage your torrents from your Android device
GNU General Public License v3.0
1.28k stars 201 forks source link

Fix stripping space out of links but keep spaces in name intact #632

Open bwitt opened 1 year ago

bwitt commented 1 year ago

Move the stripping of whitespace from a torrent link to before the URL decode happens. Hopefully this will still remove unwanted whitespace introduced by copy paste from the terminal as in https://github.com/erickok/transdroid/pull/551 while still encoding the spaces present in a magnet link as in https://github.com/erickok/transdroid/issues/618.

Fixes https://github.com/erickok/transdroid/issues/618

bwitt commented 1 year ago

@jonathanjsimon can you test this and make sure it still works for your case in https://github.com/erickok/transdroid/pull/551 ?

erickok commented 1 year ago

I think this is a good fix; though I will want to test it a bit on various clients befor emerging.