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:
parent
fc9833f68d
commit
5b8524e1e6
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue