From 590ce84fb3c20a2ddebcd72308aee004107589f0 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 17 Dec 2014 15:34:38 -0400 Subject: note about http://hackage.haskell.org/package/torrent --- Remote/BitTorrent.hs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Remote') diff --git a/Remote/BitTorrent.hs b/Remote/BitTorrent.hs index 902af1079..082fa9394 100644 --- a/Remote/BitTorrent.hs +++ b/Remote/BitTorrent.hs @@ -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] -- cgit v1.2.3