theotherp / nzbhydra2

Usenet meta search
Other
1.23k stars 75 forks source link

%2B conversion to + not work #722

Open Damix48 opened 3 years ago

Damix48 commented 3 years ago

I'm using the latest version but the conversion from %2B to + is not working when click to Download torrent or Save torrent to black hole or send magnet link button.

So from a magnet link with %2B the torrent has + in the name instead of spaces when the magnet link has +.

Correct:

I'm using qBittorrent.

theotherp commented 2 years ago

Sorry, I kinda missed this one.

I think this may be a problem with qBittorrent. %20 and + are both valid encodings for space.

Damix48 commented 2 years ago

Yeah but NZB write %2B not %20

Damix48 commented 2 years ago

Maybe a solution is to add a regex option here? https://github.com/theotherp/nzbhydra2/blob/8204f25c1d2c1fd7109211153016d71b8e4b3db9/core/src/main/java/org/nzbhydra/downloading/DownloadResult.java#L106-L117