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:
Kyle Meyer 2020-11-19 12:14:22 -05:00 committed by Joey Hess
parent 728afbc4b1
commit 9e09dcb2cf
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -382,7 +382,7 @@ torrentFileSizes torrent = do
(d:[]) -> return $ map (splitsize d) files
_ -> parsefailed (show v)
where
getfield = btshowmetainfo torrent
getfield = btshowmetainfo (fromRawFilePath torrent)
parsefailed s = giveup $ "failed to parse btshowmetainfo output for torrent file: " ++ show s
-- btshowmetainfo outputs a list of "filename (size)"