note about http://hackage.haskell.org/package/torrent
This commit is contained in:
parent
6ca54c521d
commit
e08fa65131
1 changed files with 3 additions and 0 deletions
|
@ -305,6 +305,9 @@ parseAriaProgress totalsize = go [] . reverse . split ['\r']
|
|||
|
||||
frompercent p = toBytesProcessed $ totalsize * p `div` 100
|
||||
|
||||
{- It would be better to use http://hackage.haskell.org/package/torrent,
|
||||
- but that package won't currently build. I sent a patch fixing it
|
||||
- to its author and plan to upload in Jan 2015 if I don't hear back. -}
|
||||
btshowmetainfo :: FilePath -> String -> IO [String]
|
||||
btshowmetainfo torrent field =
|
||||
findfield [] . lines <$> readProcess "btshowmetainfo" [torrent]
|
||||
|
|
Loading…
Add table
Reference in a new issue