BitTorrent: Fix build for "no torrent" code path
The RawFilePath conversions missed a spot in the else arm of "#ifdef WITH_TORRENTPARSER".
This commit is contained in:
parent
728afbc4b1
commit
9e09dcb2cf
1 changed files with 1 additions and 1 deletions
|
@ -382,7 +382,7 @@ torrentFileSizes torrent = do
|
||||||
(d:[]) -> return $ map (splitsize d) files
|
(d:[]) -> return $ map (splitsize d) files
|
||||||
_ -> parsefailed (show v)
|
_ -> parsefailed (show v)
|
||||||
where
|
where
|
||||||
getfield = btshowmetainfo torrent
|
getfield = btshowmetainfo (fromRawFilePath torrent)
|
||||||
parsefailed s = giveup $ "failed to parse btshowmetainfo output for torrent file: " ++ show s
|
parsefailed s = giveup $ "failed to parse btshowmetainfo output for torrent file: " ++ show s
|
||||||
|
|
||||||
-- btshowmetainfo outputs a list of "filename (size)"
|
-- btshowmetainfo outputs a list of "filename (size)"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue