addurl: Make --preserve-filename also apply when eg a torrent contains multiple files

Forgot to remove sanitizeFilePath after adding sanitizeOrPreserveFilePath
here.
This commit is contained in:
Joey Hess 2020-05-26 10:45:57 -04:00
parent fc9833f68d
commit 5b8524e1e6
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
2 changed files with 3 additions and 1 deletions

View file

@ -144,7 +144,7 @@ checkUrl addunlockedmatcher r o u = do
Nothing ->
forM_ l $ \(u', sz, f) -> do
f' <- sanitizeOrPreserveFilePath o f
let f'' = adjustFile o (deffile </> sanitizeFilePath f')
let f'' = adjustFile o (deffile </> f')
void $ commandAction $ startRemote addunlockedmatcher r o f'' u' sz
Just f -> case l of
[] -> noop