diff options
author | Joey Hess <joeyh@joeyh.name> | 2015-04-14 12:57:01 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2015-04-14 12:57:01 -0400 |
commit | c4fc56cfdcebf64870a0a4db47dae5071f81ac56 (patch) | |
tree | 55d7a7bfdf032a1786c31bf5cfcc1f2f3ced935b /Remote/BitTorrent.hs | |
parent | 42415de09199eccbdaf27cfc372ffb825378cf5e (diff) |
bittorrent: Fix handling of magnet links.
Diffstat (limited to 'Remote/BitTorrent.hs')
-rw-r--r-- | Remote/BitTorrent.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Remote/BitTorrent.hs b/Remote/BitTorrent.hs index 2770f30ae..baba2e23e 100644 --- a/Remote/BitTorrent.hs +++ b/Remote/BitTorrent.hs @@ -212,7 +212,7 @@ downloadTorrentFile u = do downloadMagnetLink :: URLString -> FilePath -> FilePath -> Annex Bool downloadMagnetLink u metadir dest = ifM download ( liftIO $ do - ts <- filter (".torrent" `isPrefixOf`) + ts <- filter (".torrent" `isSuffixOf`) <$> dirContents metadir case ts of (t:[]) -> do |